Dmitry Stogov
691d4a6999
Fixed uninitialised data
2008-07-25 08:23:07 +00:00
Andrey Hristov
f728ceae94
MFH: Added test file
2008-07-24 14:17:47 +00:00
Andrey Hristov
24e7d03e48
MFH: Fixed bug#44897 - failed to prepare statement
...
After a PS "CALL()" we have at least one result set. If the SP does also some, then
we need to clean the wire more fool-proof.
2008-07-23 14:07:38 +00:00
Andrey Hristov
8c56a23a26
MFH: Two less failing tests, one of which was definitely a leak in mysqli with mysqlnd
...
and pconn. ext/mysql is being fixed with a better fix for similar leak.
2008-07-22 23:44:23 +00:00
Andrey Hristov
5e79f2c476
Fix for bug#45179 --with-mysql-sock fails to compile & work
...
Now --with-mysql-sock controls all mysql extensions. If provided it will be
the default value as it was set in php.ini . php.ini will override it for
ext/mysql and ext/mysqli but not for pdo_mysql
2008-07-21 12:58:51 +00:00
Dmitry Stogov
833a2295d1
Support for closures
2008-07-17 09:53:42 +00:00
Andrey Hristov
136a55fcd9
Sync with bzr
2008-07-15 13:11:09 +00:00
Antony Dovgal
4a71b17693
more fixed tests
2008-07-13 21:43:12 +00:00
Andrey Hristov
827b772c9f
Fix remaining valgrind problems with pconn and zval cache
...
HEAD merge will follow tomorrow.
2008-06-24 22:22:48 +00:00
Andrey Hristov
943e9a577b
Fix double-free, introduced lately
2008-06-24 13:19:29 +00:00
Andrey Hristov
e0f45cf7ae
Fix possible bug with persistent connections and mysqlnd
2008-06-24 11:01:38 +00:00
Pierre Joye
41976c7ab6
- do not enable an ext when a lib/header fails
...
- use MESSAGE in mysql*
- use correct CFLAGS for ext/libxml headers
2008-06-23 18:40:29 +00:00
Andrey Hristov
259b652b2e
Make mysqli compilable in a 5_2 environment. Some want to use mysqlnd+mysqli
...
with 5_2. This won't hurt 5_2 in any way. Won't be MFB-ed because HEAD is
completely different.
2008-05-06 17:05:14 +00:00
Andrey Hristov
f4e659d2af
Update ext/mysql's and ext/mysqli's tests
...
Add mysqli_stmt_more_result()/mysqli_stmt_next_result(), but only in
mysqlnd builds as libmysql doesn't support this feature.
2008-04-24 14:22:19 +00:00
Andrey Hristov
de560f3161
MFB: Update CVS from the development tree
2008-04-16 12:57:38 +00:00
Andrey Hristov
46e3d3a4d8
Fix snapshot build
2008-04-08 07:45:49 +00:00
Andrey Hristov
5abe8c8d01
Small updates & a fix for
...
Bug #43832 mysqi_get_charset() doesn't expose charset comment
2008-03-25 18:27:17 +00:00
Andrey Hristov
85cd8525c9
Small fix and a test case to prove it's right
2008-03-20 15:29:14 +00:00
Andrey Hristov
6867385d75
- Don't modify the variables which are passed for parameter binding.
...
We need to clone them, if there will be a transformation (convert_to_xxx)
which will change the origin
(bug#44390 bind_param / bind_result and Object member variables)
- Make mysqlnd more compatible to libmysql, in this case if the execute of
a statement fails set the state of the statement back to PREPARED
- A test case to check the case of a failing statement.
2008-03-20 14:03:30 +00:00
Andrey Hristov
98680c0c8f
Fix the build
2008-03-18 17:30:55 +00:00
Andrey Hristov
caf3e9c3f1
Fixed a bunch of bugs reported in
...
Bug #44352 mysqli_connect_error() false negative for host errors
From now on the mysqli object doesn't have that magic properties, like
error, which were readable but not visible through isset(), property_exists()
and var_dump(). All other ext/mysqli classes were fixed too.
Now it will be easier to debug mysqli based applications.
2008-03-18 16:57:31 +00:00
Andrey Hristov
725b31fc6c
Update mysqlnd, ext/mysql and ext/mysqli - now possible to compile with different
...
configurations one or the another extension to use libmysql or mysqlnd mixed in
one binary
2008-03-10 20:15:38 +00:00
Johannes Schlüter
445a24e400
Fix typo
2008-03-10 13:39:53 +00:00
Andrey Hristov
a27e0c8818
- Fix a warning in php_mysql.c
...
- Fixed #44371 Extension compile failed
2008-03-10 09:18:43 +00:00
Andrey Hristov
64aad3d210
Bug fixed in 5.0.46
2008-03-08 15:00:50 +00:00
Andrey Hristov
ff8a310468
Fix a problem with $mysqi->connect() not working with default values.
...
Fix a leak, bug#39457
2008-03-08 14:55:52 +00:00
Andrey Hristov
702bc3b345
Fix test. Now passes.
2008-02-20 18:27:53 +00:00
Andrey Hristov
4ade01852c
Fix a failing test
2008-02-19 17:21:50 +00:00
Andrey Hristov
ff23e5c875
Fix test
2008-02-19 15:36:38 +00:00
Ilia Alshanetsky
fe9f641658
Fixed a possible crash
2008-02-18 13:28:48 +00:00
Andrey Hristov
49172e3c4b
Fix windows build - VC doesn't like nested macros
2008-02-12 22:05:34 +00:00
Johannes Schlüter
d211430aa7
MFH: - Fix build with TSRM and mysqlnd
2008-02-12 20:19:21 +00:00
Antony Dovgal
a47e15d8b5
MFH
2008-02-12 10:54:54 +00:00
Andrey Hristov
c95c7c7d3f
Fix typo
2008-02-12 10:51:39 +00:00
Andrey Hristov
cf07e941f1
cvs sync
2008-02-11 16:44:48 +00:00
Andrey Hristov
9790d7bfe8
MFH: Fix a compatibility bug and a failing test
2008-02-06 14:12:32 +00:00
Andrey Hristov
72c97a14e5
MFH: Fix test
2008-02-06 13:01:58 +00:00
Andrey Hristov
1caa85a682
Pconnect working with mysqli_real_connect(). To less failing tests.
2008-02-06 11:34:44 +00:00
Andrey Hristov
2d5e8a1e55
Fix a leak, memory warning and failing test case.
2008-02-04 17:33:46 +00:00
Dmitry Stogov
240fa244c3
Improved PHP binary size and startup speed with GCC4 visibility control (Nuno)
2008-01-30 09:41:12 +00:00
Andrey Hristov
2033c1b7f2
some config.w32 fixes
...
moved mysqlnd's block allocator to a separate file and also now
it's part of the connection, no MT problems.
2008-01-28 22:50:06 +00:00
Andrey Hristov
7932ccba6d
More optimizations - less MM calls
...
Clearly separated fetching (physical reading) from decoding phases (data
interpretation). Threaded fetching added but disabled as needs more work for
Windows. For Linux needs some touches to add pthreads if this is enabled,
probably with a compile-time switch.
The code reorganisation makes it easy to add also async API, similar to
cURL's one.
2008-01-28 18:25:50 +00:00
Ulf Wendel
c7c7e7f318
MySQL 6 compatibility fix.
2008-01-08 13:16:00 +00:00
Ulf Wendel
b0b510f6e6
Merge from HEAD: looks more than it is. Whitespace, some SQL formatting changes etc.
...
No "real" changes.
2008-01-08 12:49:42 +00:00
Ulf Wendel
f316766afe
MFH
...
Added:
mysqli_fetch_assoc_zerofill.phpt
checks for UNSIGNED ZEROFILL
mysqli_stmt_bind_result_zerofill.phpt
checks for UNSIGNED ZEROFILL
mysqli_stmt_bind_param_call_user_func.phpt
Needs to be refined once http://bugs.php.net/bug.php?id=43568
has been closed and a decision has been made on call_user_func_array().
There seems to be a BC break between 5_2 -> 5_3 .
Johannes has an eye on it
Modified:
mysqli_change_user_insert_id.phpt
skip test for buggy MySQL Server versions
mysqli_insert_id.phpt
added additional checks
2008-01-04 18:20:53 +00:00
Ulf Wendel
754545d918
MFH: Fix for bug #43036
2008-01-04 09:00:59 +00:00
Ulf Wendel
5dceff0104
MFH: Remove test for deprecated (and removed) function
2008-01-03 17:21:01 +00:00
Johannes Schlüter
32dfad780c
- MFH: Remove more replication stuff
2008-01-03 14:33:46 +00:00
Hartmut Holzgraefe
3354b3a480
fixed binary arithmetic (MF5.2)
2008-01-01 18:13:14 +00:00
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
2007-12-31 07:17:19 +00:00
Andrey Hristov
98f88d7a97
Remove RPL functions. They were always experimental and lead to crashes.
...
The underlying functions will be removed from libmysql as of MySQL 6.0, so
it's right time to remove them.
2007-12-28 15:37:52 +00:00
Ulf Wendel
afa5602456
Fixing SQL syntax in this very old test to make it pass with MySQL 6.0
2007-12-28 15:27:38 +00:00
Ulf Wendel
3ca72e6a79
Isn't it nice to get a new 64bit box? Fixing 32bit/64bit issue.
2007-12-28 15:26:17 +00:00
Ulf Wendel
3562e88fa6
Sooner or later these old 0*.phpt tests had to bite us - fixing SQL syntax,
...
HEAD sync will follow.
2007-12-28 15:06:02 +00:00
Ulf Wendel
8c71dd5df8
Cutting off a few edges:
...
- use connection parameter from environment variables
- check if MySQL supports procedures
- whitespace
2007-12-28 14:50:48 +00:00
Hartmut Holzgraefe
edee094851
MFH: Fix for bug #42548 "PROCEDURE xxx can't return a result set"
2007-12-25 18:55:40 +00:00
Andrey Hristov
660ba3b61b
Fix build
2007-11-09 11:06:07 +00:00
Andrey Hristov
6f63004f1a
Fix crash with pconnect
2007-11-09 10:56:28 +00:00
Jani Taskinen
5cfa9c6312
MFH: partial MFH before?
2007-11-06 10:00:39 +00:00
Jani Taskinen
7f49f956e8
- Fix bug headers
2007-10-30 12:05:53 +00:00
Jani Taskinen
ecb0fb3f0e
MFH:- Fixed invalid handling of float value passed to an integer field on 64bit machine
2007-10-29 09:51:08 +00:00
Jani Taskinen
ae6626e783
MFH: fix test
2007-10-29 09:04:15 +00:00
Antony Dovgal
74f416106c
..and correct macro
2007-10-17 08:19:07 +00:00
Antony Dovgal
780fa84fbd
MFH: use correct dtro and variable for the callback
2007-10-17 08:18:09 +00:00
Andrey Hristov
8a2e9e6043
Sync mysqlnd. Should still compile with 5_2 for those who want to use the
...
current stable branch. mysqli from 5_3 patched for mysqlnd should be also
compilable with 5_2.
2007-10-16 20:56:22 +00:00
Antony Dovgal
c9e481590f
avoid double free and use zval_dtor() where neccessary
2007-10-16 13:20:14 +00:00
Andrey Hristov
1421ccd4c0
Fix bug due to shadowing of variables. This one is pretty-pretty rare,
...
caught by source code inspection.
2007-10-16 12:55:05 +00:00
Ulf Wendel
6c508d2e4d
Same as for HEAD: make it skip and not fail if it can't connect to DB
2007-10-12 12:52:56 +00:00
Ulf Wendel
3a11ec8ba1
Same as for HEAD: Trying to skip tests if they can't connect to the
...
DB server. Note the environment variable MYSQL_TEST_SKIP_CONNECT_FAILURE
to control if you want tests that can't connect to fail or to be skipped.
2007-10-12 12:06:07 +00:00
Ulf Wendel
0c6e832584
Fixing the test. Might the PHP 5.2 run-tests.php have fooled me? I could swear,
...
I saw this test passing with 5.2 before...
2007-10-10 15:04:59 +00:00
Ulf Wendel
1f651c4051
Version specific EXPECF sections would be wonderful (bug31668.phpt).
...
And sometimes it helps to read the commit messages to keep tests up to date:
we removed mysqli_set_local_infile_handler() from mysqlnd (061.phpt) some
time ago.
2007-10-10 14:31:28 +00:00
Ulf Wendel
8cc5e47402
Last bunch of new tests.
2007-10-10 10:20:11 +00:00
Ulf Wendel
3a3594d3f1
Adding new tests: mysqli_s*.phpt
2007-10-10 10:18:50 +00:00
Ulf Wendel
5ec98ed1c8
Adding new tests: mysqli_q*.phpt mysqli_r*.phpt
2007-10-10 10:18:29 +00:00
Ulf Wendel
007e650e2e
Adding new tests: mysqli_m*.phpt mysqli_n*.phpt mysqli_o*.phpt mysqli_p*.phpt
2007-10-10 10:17:38 +00:00
Ulf Wendel
92256befd5
Adding new tests: mysqli_g*.phpt mysqli_i*.phpt mysqli_k*.phpt
2007-10-10 10:16:00 +00:00
Ulf Wendel
ec08f105b9
Adding new tests mysqli_d*.phpt mysqli_e*.phpt mysqli_f*.phpt
2007-10-10 10:14:38 +00:00
Ulf Wendel
97c82d363f
Adding new tests. Again, I'll commit in chunks and try to find acceptable
...
commit sizes.
2007-10-10 10:13:47 +00:00
Ulf Wendel
5f1fe934ea
Test code for bug #42378
2007-10-10 10:11:27 +00:00
Ulf Wendel
636d1b0803
Further changes to regression/bug-verification tests.
2007-10-10 10:10:59 +00:00
Ulf Wendel
af818e3e53
Last set of changes to the classical 0*.phpt - 06*.phpt/07*.phpt
2007-10-10 10:10:14 +00:00
Ulf Wendel
041d506a86
Changes to 04*.phpt, 05*.phpt.
2007-10-10 10:08:29 +00:00
Ulf Wendel
a429f06289
Changes to 02*.phpt, 03*.phpt
2007-10-10 10:07:46 +00:00
Ulf Wendel
4f913a4d4d
Changes to all 01*.phpt tests
2007-10-10 10:07:08 +00:00
Ulf Wendel
0a212c12b1
Changes to existing tests: 0*.phpt
2007-10-10 10:06:53 +00:00
Ulf Wendel
326fd449e2
Starting to merge updated set of tests into 5.3.
2007-10-10 10:04:46 +00:00
Andrey Hristov
eb02cb5990
Move declarations from the public header file.
2007-10-08 15:38:47 +00:00
Antony Dovgal
1ee4146d71
fix build
2007-10-07 08:30:47 +00:00
Yiduo (David) Wang
4b4d634cb9
MFH: Added macros for managing zval refcounts and is_ref statuses
2007-10-07 05:22:07 +00:00
Andrey Hristov
8b9b553aa2
Import mysqlnd
...
Patch ext/mysql and ext/mysqli to support mysqlnd
2007-10-05 21:23:56 +00:00
Dmitry Stogov
6c810b0d4c
Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)
2007-09-27 18:00:48 +00:00
Andrey Hristov
dc34874dc9
Fix stupid error, which happens only on Windows. And we thought this has
...
been fixed. Now my_thread_end() should be called and there should be no
warnings in the error logs of exiting thread, which hasn't deinited, and
leaks.
2007-09-12 09:12:56 +00:00
Andrey Hristov
09fbf87a6c
Fixed leaks with multiple connects using one mysqli object.
...
HEAD will be fixed during the next mysqlnd merge
Fixed failing test for bug38710, 5.0 version is bad, 5.1 is ok.
2007-09-06 10:07:42 +00:00
Andrey Hristov
649152ca49
Fixed bug #42378 (mysqli_stmt_bind_result memory exhaustion)
...
Fixed regression of bug 38710. Already fixed in HEAD.
#HEAD will be fixed when doing the next merge from svn
2007-09-05 12:36:44 +00:00
Andrey Hristov
38ae7f47c0
Fix build with latest 5.1 sources where gptr is no more.
2007-07-24 09:22:16 +00:00
foobar
7ed3c4536d
MFH: Fix some configure --help texts
2007-07-03 17:25:43 +00:00
Andrey Hristov
e1f222858f
Remove dot at the end of the message
2007-06-28 09:07:40 +00:00
Scott MacVicar
99c875a03d
Fixed bug #41350 (my_thread_global_end() error during request shutdown on Windows).
2007-06-25 16:01:30 +00:00
Stanislav Malyshev
b925a9248b
Fix INFILE LOCAL option handling with MySQL - now not allowed when open_basedir
...
or safe_mode is active
2007-06-18 21:51:32 +00:00
Antony Dovgal
ff514e208e
fix tests
2007-05-18 11:47:58 +00:00
Antony Dovgal
1f65545121
fix test names
2007-05-07 18:03:01 +00:00
Antony Dovgal
a06d3b7bf3
revert
2007-04-23 09:27:07 +00:00
Andrey Hristov
73da9ea31d
Hmm, the right place to edit
2007-04-19 09:49:28 +00:00
Antony Dovgal
85fe8e9663
MFH
2007-04-14 10:35:05 +00:00
foobar
82023f9aac
- Fixed test to skip when mysqld is not running
2007-03-25 01:14:51 +00:00
Marcus Boerger
6081c2284e
- MFH Optional dependency for SPL must be specified in header
2007-03-20 20:00:27 +00:00
Martin Kraemer
9c62ddde34
Typo
2007-03-14 09:58:14 +00:00
Stanislav Malyshev
1e9fd0f002
add testcase
2007-03-09 18:37:03 +00:00
Stanislav Malyshev
6e460bab4e
fix crash/leak in bug #38710
2007-03-08 22:49:53 +00:00
Marcus Boerger
d2c343a3df
- Fix spprintf usage
2007-02-24 14:33:50 +00:00
Marcus Boerger
50ea26760d
- Avoid sprintf, even when checked copy'n'paste or changes lead to errors
2007-02-24 02:17:47 +00:00
Stanislav Malyshev
8edc9018db
use error message size
2007-02-16 18:48:53 +00:00
Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
2007-01-01 09:36:18 +00:00
Hannes Magnusson
0028eccadd
Fix tests
2006-12-12 08:09:40 +00:00
Antony Dovgal
b5b8fa4f6b
fix test
2006-11-13 12:47:43 +00:00
Hannes Magnusson
3611a3de4a
Fix protos
2006-10-02 07:44:34 +00:00
Hannes Magnusson
6a4dca06e6
Fix proto
2006-10-02 07:36:18 +00:00
Georg Richter
67d2992fdc
MFH: fixed error message
2006-09-29 08:40:10 +00:00
Ilia Alshanetsky
54032dee04
Fixed test for systems without INFILE/OUTFILE support
2006-09-13 15:52:57 +00:00
Antony Dovgal
1ec10ac8c7
typos in comments and other minor improvements
2006-08-10 13:43:18 +00:00
Ilia Alshanetsky
305f597696
Improved fix for bug #37671
2006-08-04 22:13:59 +00:00
Georg Richter
0ba0abbd40
Added testcase for bug #37090
2006-07-30 11:03:30 +00:00
Antony Dovgal
92f4cc359f
MFH: fix leak in php_local_infile_init() handler
2006-07-27 10:53:15 +00:00
Ilia Alshanetsky
fea4eeb845
Added possible failure note.
2006-07-18 00:09:01 +00:00
Ilia Alshanetsky
ab6d4d411a
Fixed test for systems where set_charset() method is unavailable.
2006-07-13 15:42:43 +00:00
Antony Dovgal
8a35e9d014
fix #38072 (boolean arg for mysqli_autocommit() is always true on Solaris)
2006-07-12 09:51:47 +00:00
Antony Dovgal
1f09c0b9d5
fix TSRM build
2006-07-12 09:33:37 +00:00
Hartmut Holzgraefe
3fe315c652
MFH new test cases
2006-07-12 08:01:44 +00:00
Hartmut Holzgraefe
e796974f6f
fixed C&P errors in groups handling, activated groups feature
2006-07-12 07:01:04 +00:00
Hartmut Holzgraefe
aca6460346
MFH
2006-07-11 23:45:28 +00:00
Hartmut Holzgraefe
ae749049f5
MFH make sure that embedded database is correctly initialized
2006-07-11 23:43:55 +00:00
Hartmut Holzgraefe
61e9783154
debug output was breaking all tests
2006-07-11 23:42:58 +00:00
Hartmut Holzgraefe
3e099a5983
MFH test for ping and kill methods
2006-07-11 23:35:38 +00:00
Antony Dovgal
d9d23050d1
MFH: fix mysqli_*_free_storage() funcs to conform with their prototypes
2006-07-10 13:02:43 +00:00
Dmitry Stogov
26c7981ccf
Another fix for #38019
2006-07-10 12:46:28 +00:00
Dmitry Stogov
690e86fdb2
Fixed bug #38019 (segfault extending mysqli class)
2006-07-10 10:05:20 +00:00
Antony Dovgal
d90263437c
add test for bug #38003
2006-07-05 13:31:17 +00:00
Antony Dovgal
0f8f945418
MFH: fix bug #38003(in classes inherited from mysqli it's possible to call private constructors from invalid context)
2006-07-05 11:48:30 +00:00
Dmitry Stogov
1dbaae2795
Added automatic module globals management
2006-06-15 18:33:09 +00:00
Ilia Alshanetsky
63a658ee7a
Fixed bug #37671 (MySQLi extension fails to recognize BIT column).
2006-06-04 14:56:34 +00:00
Michael Wallner
6e2ff39e3e
- Fix bug #37630 : MySQL extensions should link against thread safe client libs if built with ZTS
2006-06-01 19:14:48 +00:00
Michael Wallner
3b407d143b
- Fixed bug #36949 (invalid internal mysqli objects dtor)
2006-05-29 16:53:56 +00:00
Georg Richter
10ed7a1e0a
Fix for bug #37620
2006-05-29 05:38:50 +00:00
Andrey Hristov
ac97b77ed9
Don't allocate 2 chunks of memory when one can fit. Reduces memory
...
fragmentation. There is one more place that fragments memory but it will
complicate the ongoing Unicode upgrade of mysqli so leaving it away for now.
2006-05-10 11:53:13 +00:00
Marcus Boerger
77c1b56cd7
- Update after api changes
2006-05-10 00:00:13 +00:00
Georg Richter
d2dd99ded5
removed unused macro parameter
2006-05-09 11:26:09 +00:00
Georg Richter
d94467f7e8
moved zend_class_entry variables to mysqli.c
2006-05-08 16:19:43 +00:00
Andrey Hristov
818d2b7aee
tweaks and optimizations
...
#tested on 32b and 64b
2006-05-08 15:06:51 +00:00
Georg Richter
0944a47107
fixed bigint conversion on windows platforms
2006-04-05 12:17:08 +00:00
Georg Richter
b97b088800
fixed stmt property container and required status for error properties
2006-04-03 05:48:50 +00:00
Georg Richter
f8e6ffee30
Added additional information for compiled header files.
2006-04-02 09:40:19 +00:00
Antony Dovgal
b6c9363f73
fix tests
2006-03-30 20:43:39 +00:00
Antony Dovgal
62ce6717ad
fix #36922 (missing MYSQLI_REPORT_STRICT constant in userspace)
2006-03-30 11:21:51 +00:00
Antony Dovgal
ad746130ad
fix typo
2006-03-29 16:29:53 +00:00
Antony Dovgal
59b8592c8c
fix bug #36898 (__set() leaks in classes extending internal ones)
...
Added:
ZEND_API void zend_object_std_init(zend_object *object, zend_class_entry *ce TSRMLS_DC)
ZEND_API void zend_object_std_dtor(zend_object *object TSRMLS_DC)
to initialize and destroy zend_object structs
2006-03-29 14:28:43 +00:00
Andrey Hristov
0b02327267
kill the left unused variable
2006-03-26 21:10:13 +00:00
Andrey Hristov
dfd5b4fbf4
remove unnecessary memcpy, cast directly
2006-03-26 21:08:41 +00:00
Georg Richter
65d704cb7c
fix and testcase for bug #36745
2006-03-24 12:10:39 +00:00
Georg Richter
f8183e2e97
fixed minor problems (thx to tony)
2006-03-24 10:58:52 +00:00
Georg Richter
b3a437fcc4
Fix for bug #36802 (server crashes with invalid/not opened connections)
...
Added status to mysqli_resource:
MYSQLI_STATUS_UNKNOWN
MYSQLI_STATUS_CLEARED (for future use)
MYSQLI_STATUS_INITIALIZED (after mysqli_init and mysqli_stmt_init)
MYSQLI_STATUS_VALID (for valid objects)
removed valid flag
changed MYSQLI_FETCH_RESOURCE
added last parameter __check which specifies the status
2006-03-24 09:32:24 +00:00
Ilia Alshanetsky
d76e149f0e
Fixed bug #36802 (mysqli_set_charset() crash with a non-open connection).
2006-03-21 15:35:28 +00:00
Georg Richter
829642a0b7
fixed a 64-bit problem reported by Pierre
2006-03-14 15:53:16 +00:00
Georg Richter
e13e2fe9ba
fix for MySQL 5.1 (see http://bugs.mysql.com/?id=16144 )
2006-03-11 11:16:03 +00:00
Ilia Alshanetsky
1aa1c535b5
Remove no longer needed check (checked at a higher level now).
2006-03-01 18:37:11 +00:00
Antony Dovgal
1e8aad5075
MFH: add checks and fix possible reincarnations of bug #36420
2006-02-16 20:58:59 +00:00
Ilia Alshanetsky
ce9dfedc69
Fixed bug #36420 (segfault when access result->num_rows after calling
...
result->close())
2006-02-16 16:03:27 +00:00
Georg Richter
04ac1f7fd1
2nd attempt: implementation of 36007
...
1st commit stopped with protocol error - never seen that before :-(
2006-01-14 14:15:41 +00:00
Andrey Hristov
3a75666285
WS
2006-01-01 16:55:01 +00:00
Andrey Hristov
d03aea048f
fetch more than one row at once
2006-01-01 16:52:05 +00:00
foobar
5bd93221a8
bump year and license version
2006-01-01 12:51:34 +00:00
Georg Richter
a5acdfc5f2
Fix for bug #35517 :
...
added missing unsigned flag for result buffer
fixed returncode in mysql_stmt_fetch for data truncation
2005-12-29 09:49:19 +00:00
Zeev Suraski
7669169bd5
Whitespace fix (don't ask :)
2005-12-26 09:28:38 +00:00
Andrey Hristov
eea08af619
fix small memory leak which emerged two days ago
2005-12-23 22:22:42 +00:00
Stefan Esser
f7c77f0f33
Beware of format strings...
2005-12-23 18:23:43 +00:00
Andrey Hristov
1c0971f3ce
fix for bug# 35759
...
(mysqli_stmt_bind_result() makes huge allocation when column empty)
#this shows some leaks now, which has to be investigated but closes the
#bug report.
2005-12-22 18:11:39 +00:00
Zeev Suraski
a034972797
Fix prototype
2005-12-22 14:55:55 +00:00
foobar
06b36f7cea
MFH: nuke php3 legacy
2005-12-06 01:40:06 +00:00
Andrey Hristov
c23052d6d2
fix compile failure on Windows - Microsoft hasn't heard of long long :)
2005-12-01 14:12:56 +00:00
Andrey Hristov
4ec16344a9
add a test case
...
fix incorrect handling of unsigned bigint.
optimize handling of unsigned int
2005-11-30 16:20:25 +00:00
Andrey Hristov
a8c0463961
fix more leaks. handle better unknown type (4.1.x connected to 5.0.x
...
incompatibility)
2005-11-30 15:26:41 +00:00
Andrey Hristov
c230f7defb
fix a crash and a leak.
...
4.1.15 (client) -> 5.x (server) because of the incompatibility because of
decimal in the protocol binding may fail. Don't close the statement in
that case because subsequent ->execute() will crash or any other function
that will try to use already freed (and in debug mode thrashed) pointer.
#probably more problems exist because of the 4.1.x -> 5.x protocol
#incompatibility
2005-11-30 11:35:03 +00:00
foobar
37661c8b39
- Always use the right sed
2005-11-29 17:32:40 +00:00
Andrey Hristov
da9abd8b73
mysql 4.1.x gives strange result. the result in the test is generated with
...
5.0.16 (valid for 5.1.3).
2005-11-28 13:35:54 +00:00
Andrey Hristov
1d3f0d8891
fix test - unsigned it is casted to 0 in mysql sql_mode
2005-11-25 01:13:56 +00:00
Ilia Alshanetsky
13996df552
Fixed test
2005-11-22 01:57:02 +00:00
Dmitry Stogov
d3e0b57e1a
Allow recursive calls to __get/__set for different properties
2005-11-15 14:28:40 +00:00
Andrey Hristov
df2c11b731
test fetching of unsigned int(11)
2005-11-08 14:43:49 +00:00
Andrey Hristov
64e8f63978
fix test - putting signed into unsigned produces 0, if not in strict mode
...
(in strict mode this will fail)
2005-11-08 14:06:40 +00:00
Andrey Hristov
00a9f063f8
on 32bit platform if the column is UNSIGNED INT(11) and the value
...
is greater than 2^31-1 then convert to string. on 64bit this is of no
problem because there long inside zval is big enough to keep unsigned
int(11)
2005-11-08 13:50:50 +00:00
Antony Dovgal
62ca4594f8
MFH: use php_error_docref() instead of php_error() everywhere
2005-10-18 13:51:50 +00:00
Antony Dovgal
d8e5ee075f
MFH: fix bug #34902 (mysqli::character_set_name() - undefined method)
2005-10-18 10:02:36 +00:00
Georg Richter
b343aa9945
fixed an error in mysqli_fetch_fields (function returns NULL instead of array
...
when row_number > num_fields).
Thanks to Marc Deslisle and phpMyAdmin team for the report.
2005-10-15 06:32:26 +00:00
Ilia Alshanetsky
d18cdaf6dd
MFH: fix test failures
2005-10-13 21:26:45 +00:00
Antony Dovgal
2bc716c131
fix TS build
2005-10-12 13:31:46 +00:00
Antony Dovgal
062626d03e
use proper macros and vars instead of strlen()
2005-10-10 20:06:35 +00:00
Antony Dovgal
a5cea052e8
fix #34818 (new mysqli_stmt() and several others crash if the first parameter is not a valid mysqli_link)
2005-10-10 20:03:00 +00:00
Antony Dovgal
410e106aae
fix #34810 (mysqli::init() and others use wrong $this pointer without checks)
2005-10-10 12:57:55 +00:00
Andrey Hristov
24af08eb80
add charsetnr and length to the object returned. this is kind of bug
...
because fetch_fields() and fetch_field() return that info and
fetch_field_direct() does not
2005-10-09 17:03:01 +00:00
Georg Richter
7357ac0b96
fix for bug 34785:
...
added support for parent::__construct (mysqli_statement and mysqli_resultset)
fixed failed testcases when sql_mode is in effect
2005-10-08 15:08:07 +00:00
Antony Dovgal
0dce979bfc
MFH: fix #32081 (mysqli_real_connect(): mysqli.default_socket in php.ini has no effect) for real
2005-09-22 20:14:34 +00:00
Antony Dovgal
bd7a277d48
fix #34450 (Segfault when calling mysqli_close() in destructor)
2005-09-13 09:20:18 +00:00
Andrey Hristov
f25c366a73
add a comment
2005-08-06 16:56:42 +00:00
Andrey Hristov
313ff9998e
add error checking
2005-08-06 16:38:48 +00:00
Andrey Hristov
dcc18b6d6f
fix problem on 64 bit - when asking for "l" supply long not int because
...
on 64 bit they differ and zend_parse_parameters makes a *(long*) cast
which means that if the variable is int 4 bytes of the variable(s)
declared before it (on the stack) will be overwritten. In this case
this is the length of the query -> made 0 and mysqli_query() returns
FALSE.
2005-08-06 16:15:53 +00:00
foobar
23e671a51e
- Bumber up year
2005-08-03 14:08:58 +00:00
foobar
40a049b27e
Skip tests in 64bit systems
2005-07-20 00:18:24 +00:00
Antony Dovgal
502b00c3f6
add forgotten ifdefs, fix #33667 (mysqli doesn't compile)
2005-07-12 20:38:34 +00:00
Georg Richter
9aabcf7016
changed version dependency for charset functions
2005-07-12 15:45:07 +00:00
Georg Richter
9caaee66bd
removed charset structure. libmysql now provides a function
...
mysqli_get_character_set_info (Vers. 5.0.10)
2005-07-12 09:35:16 +00:00
foobar
a7e85b3c07
Make sure we get a WARNING and not an ERROR here :)
2005-07-08 08:53:25 +00:00
foobar
b35224fa81
add test case
2005-06-27 19:07:52 +00:00
Antony Dovgal
b16beb540c
fix #33491 (crash after extending MySQLi internal class)
2005-06-27 17:40:37 +00:00
Antony Dovgal
689f3488a5
fix couple of leaks in MySQLi
2005-06-27 17:33:56 +00:00
foobar
8eb44394cb
set_charset() is only available in mysql versions > 4.1.12
2005-06-27 10:34:42 +00:00
foobar
0b35120921
do not pollute other directories and cleanup after test
2005-06-27 10:14:11 +00:00
Georg Richter
01108f7879
fix for #33474
2005-06-26 04:44:03 +00:00
Georg Richter
224b12ba8b
reverted Ilias changes - added get_warnings methods
...
(forgot to commit the file in my last commit)
2005-06-24 14:44:45 +00:00
Ilia Alshanetsky
50d32d4d7e
temporary fix to let mysqli extension build, so we can make a release.
2005-06-23 02:15:04 +00:00
Ilia Alshanetsky
00f14fbd74
Slightly more reliable current path detection.
2005-06-22 13:41:59 +00:00
Ilia Alshanetsky
46b276ee4b
Skip MySQLi tests if connection could not be established and not using
...
embeded db.
2005-06-22 13:41:43 +00:00
Georg Richter
ce972676b5
added testcase for mysqli_warning class
2005-06-22 10:15:37 +00:00
Georg Richter
976be82fb9
added testcase for cursors (nested selects)
2005-06-22 10:14:32 +00:00
Georg Richter
6fba73e8e2
changed/fixed mysqli_warning class
...
added prefetch support for cursors
2005-06-22 09:12:43 +00:00
Georg Richter
15563f8d91
fix for bug #33263 (mysqli_real_escape doesn't work in __construct)
2005-06-17 16:32:43 +00:00
foobar
bf94716838
- Allow doing --with-mysql --with-mysqli (no mysql libs are bundled atm)
...
- Make sure MYSQL_DIR is empty.
2005-06-07 12:39:02 +00:00
Wez Furlong
e9d474dc01
fixes for #33251
2005-06-05 19:25:01 +00:00
Georg Richter
d486da963e
added new function mysqli_get_charset
2005-06-03 08:49:01 +00:00
foobar
a20383ba06
- Unify the "configure --help" texts
2005-05-29 23:17:16 +00:00
Georg Richter
230681b0b3
enabled set_charset for MySQL Versions >= 5.0.6
...
added testcase for bug #33090
2005-05-21 08:46:46 +00:00
Georg Richter
3e416f738c
fix for bug #33090 (mysql_prepare doesn't return error)
2005-05-21 08:38:53 +00:00
Georg Richter
d72cd1d130
charsets_dir is no longer needed
2005-05-13 13:56:04 +00:00
Georg Richter
d8f91dc44c
mysql_set_charset now works version undependent for MySQL 4.1.13 and above
2005-05-13 13:30:22 +00:00
Georg Richter
49e1484da8
- fixed compile error under windows. Functionality for changing the
...
character set was moved to libmysql (4.1 bk tree - will be merged into
5.0 within the next days).
- renamed mysql_set_character_set to mysqli_set_charset
2005-05-13 13:11:41 +00:00
Andrey Hristov
8e97019a69
after throwing an warning bail out
2005-05-09 22:29:54 +00:00
Andrey Hristov
b4464a2d6a
mysqli won't compile with Zend2 API before 2001 - in these days there was
...
no Zend2
2005-05-09 22:29:21 +00:00
Andrey Hristov
d5e0b8a628
MFB
2005-05-09 21:48:03 +00:00
foobar
8d00609794
- We skip tests when the extension is not loaded..in the php.ini
2005-05-09 21:16:49 +00:00
foobar
db1a5ab243
revert pointless patch
2005-05-09 21:16:06 +00:00
Andrey Hristov
02d0f72596
also test shared builds
2005-05-09 16:23:22 +00:00
Georg Richter
b654b20ef6
Added new function mysqli_set_character_set_name
2005-05-08 08:39:56 +00:00
Andrey Hristov
daae299653
revert this one till we have a better way to inform the user where the
...
truncation has occured
2005-05-07 12:46:29 +00:00
Andrey Hristov
91b3b49f14
return MYSQLI_DATA_TRUNCATED if data happens to be truncated
...
#the manual has to be updated
2005-05-07 08:23:39 +00:00
Andrey Hristov
70da059cc0
return directly
2005-05-07 08:03:35 +00:00
Andrey Hristov
b7df40a75a
bail out when detecting incorrect number of parameters to be bound.
2005-05-07 07:44:41 +00:00
Andrey Hristov
60c0c8e95c
initialize values because the call to zend_parse_parameters may not do it
2005-05-06 10:09:42 +00:00
Georg Richter
929e3851f2
fixed memleak in mysqli_close
...
fixed bug #32956 (mysqli_bind_result doesn't support MYSQL_TYPE_NULL)
2005-05-05 13:02:32 +00:00
Andrey Hristov
e640960186
multi_query is no more global
...
#thanks Sebastian!
2005-04-29 10:23:55 +00:00
Ilia Alshanetsky
8abc1d3b9c
e* allocation cannot fail.
2005-04-28 23:49:04 +00:00
Andrey Hristov
3b3ce2b610
fix bug #32013(MySQLi bind_result causes fatal error: memory limit reached)
...
#this is a partial fix but it cannot be better. the user has to call
#$stmt->store_result() and for a BLOB/MEDIUTEXT (and larger) space will be
#allocated as big as the biggest column value.
2005-04-27 17:53:15 +00:00
Andrey Hristov
f6b12b351e
MFB (fixing bug 31668)
2005-04-27 12:12:58 +00:00
Georg Richter
2bcae57b31
another fix for last commit (committed from wrong tree) :(
2005-04-20 13:24:08 +00:00
Georg Richter
9c1960c398
fixed typo in last commit :(
2005-04-20 13:03:01 +00:00
Georg Richter
649a8b18ef
added support for data truncation (bind_result) for MySQL 5.0.5
2005-04-20 12:50:13 +00:00
Andrey Hristov
2652762dcd
MFB
2005-04-19 15:45:07 +00:00
Andrey Hristov
eef94ff4bb
add a test case for Bug #32405 (the previous commit incorporated a fix
...
for it).
2005-04-19 13:29:37 +00:00
Andrey Hristov
2a3c71b833
- nail down another 64bit problem. this will fix about 14 failing tests
...
on amd64 (probably other 64 bit arch).
- use ulong for this boolean variable, as it was before
- throw an warning if offset passed to mysqli_stmt_data_seek is negative
2005-04-19 13:28:41 +00:00
Andrey Hristov
155b90db20
- fixing all "long" into "int" fetching problems (cause memory corruption
...
on 64 bit)
- nail down a problem because of the new MYSQL_TYPE_NEWDECIMAL introduced
in MySQL 5.0+
- Add more info to the autocommit test
2005-04-19 12:59:16 +00:00
Georg Richter
21cae3966c
cursor support for 5.0.4 (STMT_ATTR_CURSOR_TYPE changed to enum)
2005-04-18 06:03:29 +00:00
Georg Richter
f6ecb58448
fix for bug #32282 (segfault in mysqli_fetch_array on 64-bit)
2005-04-06 06:47:12 +00:00
Joe Orton
6974b5ecce
Mark more private functions as static.
2005-03-30 13:43:36 +00:00
Joe Orton
5aa95520cd
Mark private functions as static.
2005-03-30 12:56:58 +00:00
Antony Dovgal
646bb71503
fix typo in error message
2005-03-17 18:12:06 +00:00
Marcus Boerger
5830e46a84
- Bugfix #28840 __destruct of a class that extends mysqli not called
2005-03-06 21:40:01 +00:00
Georg Richter
2e2bfb83c4
fix for bug #31939
2005-02-25 08:43:41 +00:00
Ilia Alshanetsky
a3085602d0
Fixed bug #32081 (default socket value is not being used).
2005-02-24 23:58:59 +00:00
Georg Richter
ef6f0f00a6
fix for bug #29329
2005-02-05 10:59:38 +00:00
Georg Richter
32aaa6a7be
fixed a bug in mysql_affected_rows and mysql_stmt_affected_rows
...
in case affected_rows function returns (my_ulonglong) -1 for errors.
(Thanks to Antony Dovgal for reporting this bug)
2005-01-28 17:35:37 +00:00
Antony Dovgal
6ffd569410
MFB: fix leak in mysqli_fetch_array()
2005-01-27 14:41:48 +00:00
Georg Richter
7148919940
fix for bug #31710 (return value for mysql_rollback is reverted)
...
fixed also same behaviour for mysql_commit and mysql_autocommit
2005-01-27 10:18:28 +00:00
Antony Dovgal
9d9e4379af
MFB: fix segfault when invalid field offset is passed to mysqli_fetch_field_direct()
2005-01-27 01:14:43 +00:00
Zak Greant
f3d39ff406
Added standard emacs and vim modelines
2005-01-16 19:28:55 +00:00
Georg Richter
6b49e2d9e7
fixed compile bug under Windows (libmysql.def currently doesn't export mysql_server_init/end).
...
Thanks to Sebastian Bergmann for reporting
2005-01-08 15:11:37 +00:00
Marcus Boerger
01d6db92fc
- Fix shared build
2005-01-08 13:36:17 +00:00
Marcus Boerger
8045f834d4
- Remove double destroy (which is definitively wrong and prevents php from
...
normal execution).
2005-01-08 13:34:03 +00:00
Georg Richter
f16db40af2
forgot to remove some comments in last commit:(
2005-01-07 16:34:55 +00:00
Sebastian Bergmann
683515596b
ZTS fix.
2005-01-07 16:24:51 +00:00
Sebastian Bergmann
aca657eca2
Sync with config.m4.
2005-01-07 16:23:13 +00:00
Georg Richter
0b4c108bd7
Added new classes:
...
mysqli_driver
mysqli_warning
mysqli_exception
mysqli_sql_exception
Improved embedded server support
changed testsuite to work also with embedded server
Made statement and resultset classes extendable
minor fixes
2005-01-07 14:59:59 +00:00
Georg Richter
57fa54af2d
added property 'id' to retrieve statement id (required by PEAR DB, to support
...
mysqli prepared statements)
2004-12-29 11:46:13 +00:00
Georg Richter
dc63cb7feb
fixed testcase 047
...
fixed windows compile error
2004-12-27 15:39:35 +00:00
Georg Richter
698c0361d6
Fix for feature request #31015 : added length for field length
2004-12-27 11:48:57 +00:00
Georg Richter
683f6c879c
added constructors for mysqli_stmt and mysqli_result classes
2004-12-26 13:16:40 +00:00
Georg Richter
ea22bf6063
fix for bug 31141
2004-12-25 16:42:53 +00:00
Georg Richter
5c50f0bb30
prevent type conversion during mysql_stmt_execute for NULL variables
2004-12-20 16:39:14 +00:00
Antony Dovgal
01f31dcccb
fix buffer overrun and remove debug printf() call
2004-12-09 08:22:06 +00:00
Georg Richter
f0f08ec32b
fixed windows compile errors (Thx to Sebastian Bergmann)
2004-12-06 05:15:03 +00:00
Georg Richter
6d27573ec2
added skipif section
2004-12-04 08:50:33 +00:00
Georg Richter
9751d9afaa
Fixed bug #30890 (testsuite)
...
Fixed bug #28817 (property problems in extended class)
2004-12-04 08:16:04 +00:00
Georg Richter
30dd61abb7
Fixed bug #30967 (properties in extended mysqli classes don't work)
2004-12-03 07:56:19 +00:00
Edin Kadribasic
d2b5b62af5
MySQL is releasing client libraries that compile out of the box
...
with mysqli extension, so there is no need for a specially compiled
client library anymore.
2004-11-04 02:41:40 +00:00
Georg Richter
b557bdb665
added multi resultset support in mysql_connect
2004-11-01 09:53:16 +00:00
Georg Richter
b8863135a2
Fixed tests for empty dates (see http://bugs.mysql.com/?id=6058 )
...
Fixed memleak in mysqli_stmt_bind_result
Fixed error handling for mysqli_multi_query
2004-11-01 07:19:26 +00:00
Georg Richter
f4f84ac9ab
Minor fix for mysqli_connect: checking socket_len for NULL Values
...
(Thx to Paul DuBois)
2004-10-19 05:14:09 +00:00
Georg Richter
eb3900b77a
forgot to remove comment in last commit
2004-09-04 14:16:52 +00:00
Georg Richter
62ed6a0f2b
fixed bug #29283
2004-09-02 04:53:01 +00:00
Georg Richter
616d49aaf6
test for local_infile_handler
2004-08-25 13:58:03 +00:00
Georg Richter
c8572b0bba
changed local_infile_handler:
...
mysql client lib now uses php_local_infile functions by default, which allows
to use php_fopen_wrapper: e.g. LOAD DATA LOCAL INFILE 'http://foo.com/bar.csv ' ...
mysql_set_local_infile_handler now only supports a callback function for read.
2004-08-25 13:57:35 +00:00
Georg Richter
1c6f49006b
fixed default for mysqli_fetch_array
2004-08-15 05:48:16 +00:00
Georg Richter
1593aa0e5e
fixed bug #29656 (segfault on result and statement properties)
2004-08-13 16:25:29 +00:00
Georg Richter
8ff9528138
minor fix in mysqli_prepare: copying stmt errormessag to mysql structure
2004-08-12 22:14:06 +00:00
Georg Richter
2454194424
fixed bug #29577 (MYSQLI_CLIENT_FOUND_ROWS undefined)
2004-08-09 04:34:01 +00:00
Georg Richter
40defd5f2c
forgot to remove debug variable :( (Thx to Derick)
2004-08-04 13:15:48 +00:00
Georg Richter
5caeacc9c3
fixed properties when connect wasn't called
2004-08-04 12:59:09 +00:00
Georg Richter
161b37ffbc
fixed bug #29522
2004-08-04 12:28:09 +00:00
Georg Richter
485f862b35
fixed bug #29335
2004-07-26 07:19:05 +00:00
Georg Richter
dede51adf6
fixed bug in mysql->client_version
...
added mysql->client_info property
2004-07-26 05:44:06 +00:00
Georg Richter
8c6ab178e4
fixed bug #29311
...
added support for Cursors (MySQL 5.0.x)
2004-07-23 12:47:36 +00:00
Georg Richter
96c002e07c
changed warning (bug #29298 ) for outdated client library
2004-07-22 07:24:55 +00:00
Sara Golemon
f064a2c8b9
This should fix binary safety for bound results or may coogle strike me down.
2004-07-22 03:23:33 +00:00
Andi Gutmans
56f8195fe5
- Nuke empty_string. It is a reminanent from the time where RETURN_FALSE()
...
used to return "" and not bool(false). It's not worth keeping it because
STR_FREE() and zval_dtor() always have to check for it and it slows down
the general case. In addition, it seems that empty_string has been abused
quite a lot, and was used not only for setting zval's but generally in
PHP code instead of "", which wasn't the intention. Last but not least,
nuking empty_string should improve stability as I doubt every place
correctly checked if they are not mistakenly erealloc()'ing it or
calling efree() on it.
NOTE: Some code is probably broken. Each extension maintainer should
check and see that my changes are OK. Also, I haven't had time to touch
PECL yet. Will try and do it tomorrow.
2004-07-19 07:19:50 +00:00
Georg Richter
15ef63b39a
fixed paraenthesis warning in mysql_stmt_attr_set/get
2004-07-17 10:48:28 +00:00
Georg Richter
bfd3c9ecfb
prototype fixes
2004-07-13 17:04:16 +00:00
Georg Richter
f61dbf06a1
changed mysqli_stmt_reset (returns now bool instead of void)
2004-07-13 16:12:28 +00:00
Georg Richter
9db1075c0e
added check in config.m4 for deprecated library
...
added support for new 4.1.3-beta functions
mysqli_stmt_field_count
mysqli_stmt_attr_set
mysqli_stmt_attr_get
removed support for deprecated/old api functions
fixed bug in constructor_get
2004-07-07 08:02:27 +00:00
Marcus Boerger
c884ad017c
- Bugfix: #29019 Database not closing
2004-07-05 19:36:10 +00:00
Georg Richter
f063bdec06
added php_mysqli_construct_get to support __construct in extended classes
2004-06-23 16:47:25 +00:00
Georg Richter
202d2990a9
fixed crash (changed MYSQL TO MY_MYSQL in mysql_stmt_init)
2004-06-08 06:20:58 +00:00
Georg Richter
1b40042b35
forgot to remove Win32 restrictions for mysql methods
2004-06-07 08:34:52 +00:00
Georg Richter
f0468116c0
removed conditional defines for load_data_infile_handlers on windows
...
(4.1.2 windows build is fixed now on mysql.com)
2004-06-06 08:52:19 +00:00
Sebastian Bergmann
14deb9dd04
ZTS fixes.
2004-06-06 06:40:19 +00:00
Georg Richter
93bf6517df
Major changes for 4.1.2-alpha/4.1.3-beta:
...
- added container for mysql structure
- added load data infile callback functions (currently disabled under win)
Bug fixes:
- fixed property changes (4.1.1 -> 4.1.2)
- fixed memleak in mysqli_connect
- fixed bug #28100
- fixed bug #28205
- fixed bug #28430
2004-06-05 18:31:56 +00:00
Andi Gutmans
14edc95ff8
- Temporary fix for bug #27869
...
- George, you need to implement clone in order for "clone" and
- compatibility mode to work.
2004-04-15 17:25:51 +00:00
Derick Rethans
29273ca7a9
- Align help output for configure.
2004-03-31 21:11:23 +00:00
Hartmut Holzgraefe
eeb172b29f
"The Visa to Sibiria" (work in progress)
...
Adding a package.xml to a bundled extension does not only
ease the transition to PECL whereever suitable but also
allows to build and install an extension as "shared" using
the PEAR installer without having to deal with phpize and
friends by hand
2004-03-23 19:46:10 +00:00
Georg Richter
460ec22808
ups - changed alias instead of method before
2004-03-21 20:45:57 +00:00
Georg Richter
535b190ac1
renamed get_metadata method to get_result_metadata.
...
(We have to differentiate between result_metadata and param_metdata.
mysql_stmt_param_metadata will be added in libmysql 4.1.3)
2004-03-21 20:43:44 +00:00
Stanislav Malyshev
5b0f6b1f34
Update for new read_property API
2004-03-21 18:28:38 +00:00
Georg Richter
e6ac744282
fixed problems in mysql_stmt_init (missing alloc from stmt)
2004-03-18 13:04:55 +00:00
Georg Richter
848f123645
removed if type=string: val is allocated for any type of data
2004-03-18 13:03:17 +00:00
Georg Richter
e3077eadef
fixed stmt->stmt->query which was removed in libmysql 4.1.2
...
added query buffer in internal stmt structure to copy string
after prepare
2004-03-16 21:43:25 +00:00
Georg Richter
a3bd712b78
added new function mysql_stmt_free_result
2004-03-10 09:50:05 +00:00
Marcus Boerger
59804de32e
Missing buffer->val change
2004-03-09 14:29:20 +00:00
Georg Richter
612ab199ad
fixed memleaks in bind functions
...
added 4.1.2 support (renamed functions)
2004-03-09 12:01:23 +00:00
Edin Kadribasic
865903a2a4
Attempt at fixing win32 link errors
2004-03-03 18:54:20 +00:00
Edin Kadribasic
fb861026d8
Add missing source file
2004-03-03 18:36:30 +00:00
Edin Kadribasic
664998fa50
Replace mysql with mysqli in paths to allow building both mysql and mysqli
2004-03-03 18:15:56 +00:00
foobar
ac5fa854f3
ws & cs fixes
2004-02-26 12:33:23 +00:00
Georg Richter
700bb4dbb4
prototype fix for mysqli_ping
2004-02-26 12:24:21 +00:00
Georg Richter
8e52a1a8a3
added MySQLI ini entries
...
added ini parameter for mysql->reconnect
2004-02-26 11:40:35 +00:00
Georg Richter
5ffccfffda
removed blocking calls to mysql_set_server_option (MYSQLI_DISABLE_MQ)
...
added mysqli_multi_query to function table
changed stmt->affected_rows property (http://bugs.mysql.com/?id=2247 ) for 4.1.2
2004-02-26 08:27:24 +00:00
Ard Biesheuvel
81f05c18f5
Wordsize fixes
2004-02-25 20:16:27 +00:00
foobar
cae6ae8250
Do not corrupt mysql build with mysqli build stuff. (should fix #27387 )
2004-02-25 13:29:30 +00:00
Georg Richter
c65d7997c3
fixed prototypes for mysqli_connect_err* functions
...
(thx to Mehdi Achour)
2004-02-23 16:49:18 +00:00
Georg Richter
b3979e76ba
fixed report message
...
Disabled reconnect option
2004-02-23 06:35:18 +00:00
Sebastian Bergmann
7af39b1aad
Can't test whether it works (no current >=mysql-4.1.2 available on Windows), but it should.
2004-02-21 15:05:52 +00:00
Georg Richter
12c6378412
fixed typo in method alias
2004-02-21 07:37:41 +00:00
Georg Richter
1f67407f84
Moved functions for replication support in to file mysqli_repl.c
...
- these functions are marked as experimental now in documentation
not sure if we will replace or extend them with NDB support in
April
2004-02-20 13:09:14 +00:00
Georg Richter
a12c95e1be
changed return value of mysql_fetch
...
- instead of MYSQL_NO_DATA mysql_fetch will now return NULL
2004-02-18 13:26:57 +00:00
Georg Richter
f7ca7c469a
changed output
2004-02-17 07:45:15 +00:00
Georg Richter
d23dff1220
fixed some tests
...
added skip section for prepared statements when using SHOW command
2004-02-16 15:32:46 +00:00
Georg Richter
d5084182ce
fixed several binding problems
2004-02-15 20:23:05 +00:00
Zeev Suraski
7c710a9f9b
Use zval_ptr_dtor() to free variables as soon as they hit refcount of 0.
...
Note: You should not be using ZVAL_DELREF() in day to day usage. Instead,
you should use zval_ptr_dtor(). Use ZVAL_DELREF() only if you're
messing with the refcount directly and know what you're doing.
Note #2 : For clarity, if you want to initialize a new zval with a refcount
of 0, it's best to do that directly, instead of using ZVAL_DELREF
after allocating the zval...
2004-02-15 12:58:19 +00:00
Zeev Suraski
30171a7590
zend_default_classes.h -> zend_exceptions.h
2004-02-12 10:43:27 +00:00
Georg Richter
9e93ac6005
removed printfs :)
...
Thx Andi!
2004-02-11 08:34:08 +00:00
Georg Richter
3e2907d614
changed first param in mysqli_bind_param
2004-02-11 07:39:28 +00:00
Georg Richter
c0a1ec4210
changed first parameter in mysqli_bind_param from array to string
...
(as discussed on berlin db meeting)
2004-02-11 07:38:43 +00:00
Georg Richter
e3d0e587b8
fixed cast warning
2004-02-07 13:45:44 +00:00
Zeev Suraski
8424be849f
- Update with new destructor code
2004-02-04 11:14:47 +00:00
Georg Richter
cccb92b233
Corrected binding:
...
if column has type DECIMAL it will converted to string now.
Thanks to Brian Aker for pointing this out.
2004-01-31 07:51:03 +00:00
Georg Richter
1baf3d3478
added nuw_rows property for statement object
2004-01-30 22:45:19 +00:00
Georg Richter
7782a4b425
removed experimental status
...
fixed bug in mysqli_data_seek (thx to Andrey "Effendi" Hristov)
various prototype fixes
moved some methods to properties which are part of mysql struct
added function mysqli_get_server_version
2004-01-28 22:51:54 +00:00
Georg Richter
692726cdd3
changed prototype mysql_dataseek from void to bool
...
add check for specified offset
2004-01-27 13:56:03 +00:00
Georg Richter
429aa55248
prototype fixes
...
removed method field_tell (which is already property current_field)
2004-01-27 13:23:54 +00:00
Georg Richter
c139c48a99
fixed compiler warning (thx to Marcus Boerger)
2004-01-26 20:08:16 +00:00
Georg Richter
5066f521db
proto fixes
...
removed mysqli_read_query_result (will be removed in libmysql)
2004-01-26 13:38:13 +00:00
Georg Richter
85510ff3a1
more prototype fixes.
...
fixed a bug in mysqli_send_long_data
2004-01-26 07:39:57 +00:00
Georg Richter
a2380e901b
prototype fix for mysqli_fetch
2004-01-25 12:01:36 +00:00
Georg Richter
ed135edbda
prototype fixes
2004-01-24 14:38:16 +00:00
foobar
6a1d0114a7
Silence some compile warnings
2004-01-23 03:28:59 +00:00
foobar
f4983c0d3f
- Renamed all *php4* files to *php5*, changed all php4/PHP4 to php5/PHP5
2004-01-17 13:00:38 +00:00
Marcus Boerger
635e3b1980
Proto fix
2004-01-12 00:34:37 +00:00
foobar
ccfc46b0aa
- Happy new year and PHP 5 for rest of the files too..
...
# Should the LICENSE and Zend/LICENSE dates be updated too?
2004-01-08 17:33:29 +00:00
Andi Gutmans
dbeb4158d2
- A belated happy holidays and PHP 5
2004-01-08 08:18:22 +00:00
Georg Richter
27319233e5
fixed bug(s) in macro call for statement properties
2004-01-01 15:46:39 +00:00
Georg Richter
1733557ac8
Added Macro for longlong values
...
added property stmt->affected_rows
2004-01-01 14:04:35 +00:00
Ilia Alshanetsky
b658a26874
emalloc() -> safe_emalloc()
2003-12-31 19:45:46 +00:00
Georg Richter
c10072d067
fixed memleak and segfault when constructor call failed
2003-12-31 08:34:02 +00:00
Georg Richter
51fc89e49c
fixed a bug in mysqli_num_rows (added support for longlong values)
2003-12-30 19:19:13 +00:00
Georg Richter
17f6ef5106
fixed a bug in insert_id property
2003-12-30 19:08:33 +00:00
Georg Richter
703921ab36
updated todo list (removed finished tasks)
2003-12-29 00:11:14 +00:00
Georg Richter
36b65c4ed0
fixed prototype for mysqli_bind_result
2003-12-28 22:26:59 +00:00
Georg Richter
95bda90038
fixed bug in properties for longlong values
2003-12-28 09:18:51 +00:00
Georg Richter
5bf9b63c5b
beautifying :)
2003-12-22 17:00:54 +00:00
Georg Richter
ba7d400fa1
fixed bug #26680
2003-12-22 16:56:14 +00:00
Georg Richter
317e4b0d90
added properties
...
- insert_id
- server_status
fixed bug in mysqli_execute (report func)
2003-12-16 08:18:31 +00:00
Georg Richter
ec5b38fae9
minor fixes for embedded
2003-12-13 16:08:13 +00:00
Marcus Boerger
04d0d99b11
ZTS fixes
2003-12-13 13:44:56 +00:00
Georg Richter
ec7ddff5c7
removed old profiler stuff for embedded server
2003-12-13 10:15:45 +00:00
Georg Richter
bef6368dee
removed profiler stuff
2003-12-13 00:46:48 +00:00
Georg Richter
8b3b1c192b
removed profiler
...
added mysqli_report
- better support for errors
- support for no_index_used and bad_index_used
typos and prototype fixes
2003-12-13 00:28:21 +00:00
Georg Richter
1be7176c7b
freeing result and stmt properties in MSHUTDOWN
2003-12-10 10:06:07 +00:00
foobar
3c0eb788fa
ws
2003-12-08 18:57:09 +00:00
foobar
b03cb681f6
Fix logic
2003-12-07 15:33:19 +00:00
Georg Richter
10b60148c9
prototype fix for mysqli_ssl_set
2003-11-30 10:56:55 +00:00
Georg Richter
e664af1943
added/fixed write property
2003-11-24 11:31:26 +00:00
Georg Richter
fee99f6b29
fixed mem leak in constructor
2003-11-23 07:50:04 +00:00
Georg Richter
230b207849
- Added multiquery support:
...
mysqli_multi_query
mysqli_more_results
mysqli_next_results
- added read-only properties (and removed methods)
object mysql
affected_rows
client_flags
client_version
errno, error,
host, host_info, info
server_capabilities, server_version
sqlstate, port, protocol_version,
server_language
thread_id, user, warning_count
object result
current_field, field_count,
lengths, num_rows, type
object stmt
query, param_count, field_count,
id, errno, error, sqlstate
- added constructor
- minor fixes, prototypes
2003-11-22 21:20:07 +00:00
Hartmut Holzgraefe
f992fbfa2c
proto fix
2003-11-19 20:13:49 +00:00
Ilia Alshanetsky
d9bf51b17c
10-18% optimization of fetch_array(), when both number & string indexes are
...
created.
# Do we want to MFH the change (for ext/mysql) into 4.3.X?
2003-11-07 17:20:49 +00:00
foobar
2c9f29b9b6
cosmetics
2003-10-31 13:48:34 +00:00