Ulf Wendel
7c7d7ac1fa
No idea which recent change has cause this little API change, however it is not a big change and maybe it is even an improvement.
2010-02-02 13:10:50 +00:00
Ulf Wendel
8aa8b6135b
Tests related to #50727
2010-02-01 12:18:50 +00:00
Andrey Hristov
6407250e70
Fix for bug#50772
...
mysqli constructor without parameters does not return a working mysqli object
2010-01-25 13:23:32 +00:00
Andrey Hristov
36a037d236
Fix build of mysqli when libmysql is used, mysqlnd_portability.h
...
might not be available for some weird reasons. Added the macros
that we need, in that case
Code by Jess Portnoy
2010-01-14 09:47:57 +00:00
Ulf Wendel
795f716832
Updating test to new libmysql feature set (first introduced in MySQL 6.0 but now backported to MySQL 5.5).
2010-01-04 15:29:18 +00:00
Ulf Wendel
bd4c681a42
Fixing test
2010-01-04 14:59:04 +00:00
Ulf Wendel
bf9d5991ea
Tweaking test. Andrey, you once requested such a test, please have a look if it does exactly what you want it to do.
2010-01-04 14:34:44 +00:00
Ulf Wendel
39e27c9030
The internal zval cache has been removed and not been reintroduced... remove corresponding test code
2010-01-04 13:44:10 +00:00
Pierrick Charron
614fd65795
Fixed bug #50636 (MySQLi_Result sets values before calling constructor)
2010-01-03 16:59:33 +00:00
Sebastian Bergmann
9ba1e81665
sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php
2010-01-03 09:23:27 +00:00
Andrey Hristov
01adfaee5f
Unify. The typedef-ed structs in mysqlnd are always capitalized.
2009-12-23 11:58:45 +00:00
Ulf Wendel
e2a2205a58
Test for what Andrey has found with 16M packets
2009-12-17 14:15:28 +00:00
Andrey Hristov
06a417b6a9
Remove stub code which never actually was used for anything.
...
Things like this can be built on top of the core.
2009-12-09 20:38:11 +00:00
Andrey Hristov
6f598e62ff
Remove the zval caching from mysqlnd. It was disabled versions ago
...
due to problems on windows, which were not debugged. Better have
code that is disabled not in the core.
2009-12-09 20:21:05 +00:00
Andrey Hristov
4d2735007d
Remove disabled code - threaded fetching. This can be implemented
...
on a upper level and by offloading it we reduce the complexity of
the core.
2009-12-09 16:57:03 +00:00
Ulf Wendel
671ebe958a
Adapting tests to accept actual behaviour found in 5.2, 5.3 and 6.0. The behaviour is wrong according to the documentation: mysqli_connect_error() should return an empty string (not NULL), if there is no error. However, changing this would break BC and most users will not notice the difference between NULL and empty string anyway.
2009-12-09 12:06:10 +00:00
Rasmus Lerdorf
2bdd3538de
Fix broken build.
...
This constant is not in older versions of MySQL.
2009-12-01 21:39:19 +00:00
Rasmus Lerdorf
c6502213b4
Fix bug #49098
2009-11-12 01:09:16 +00:00
Ulf Wendel
5ed0015f62
mysqli won't accept empty string for socket, skip test of mysqli.default_socket if test run does not use socket
2009-11-04 16:56:32 +00:00
Ulf Wendel
4a95aa3989
Fix for bug #49965 . Let mysqli_options() try to cast option values to the appropriate type.
2009-11-03 14:56:04 +00:00
Ulf Wendel
00654b8a06
Fixing stats, updating test to accept new stats
2009-10-22 16:05:33 +00:00
Ulf Wendel
d356459971
There subtle differences between Linux and Win. mysqlnd is a bit more verbose on Win... silencing to make the test pass
2009-10-21 18:57:45 +00:00
Ulf Wendel
8df115c25e
Making test a bit more portable
2009-10-20 17:54:57 +00:00
Ulf Wendel
03c3c1edb3
Fixing test
2009-10-20 17:03:32 +00:00
Ulf Wendel
3258a6572d
libmysql is still 'buggy' - skip test with libmysql
2009-10-20 14:11:43 +00:00
Ulf Wendel
3fb67347ea
Well, hacking around to cope with mysql version specific behaviour if using libmysql...
2009-10-20 13:58:57 +00:00
Ulf Wendel
87a4f09cbf
Skipping tests if InnoDB is available but disabled. I wonder what InnoDB status comes next...
2009-10-20 12:41:58 +00:00
Ulf Wendel
57c1b63c2d
Fixing typo in SKIPIF and partly skipping tests if using remote MySQL because LOAD LOCAL INFILE will fail
2009-10-20 12:31:04 +00:00
Ulf Wendel
eb0e09f5dc
Using require[_once] instead of include. Adding logic to connect.inc to detect multiple inclusions of connect.inc which leads to a Fatal error because of my_mysqli_connect() function redefinition. Some tests did include connect.inc twice -> run-tests - even the one from trunk - did not detect Fatal error in SKIPIF -> false-positive test result...
2009-10-19 20:07:25 +00:00
Ulf Wendel
344d6803ec
mysqlnd is a bit more verbose than libmysql - silence mysqlnd here for easier comparison of test results.
2009-10-19 16:07:10 +00:00
Ulf Wendel
f610cdd9a2
MySQL server and metadata - a sad story... trying to make the test pass with a few more server versions
2009-10-19 12:55:11 +00:00
Ulf Wendel
d01d398bad
Fixing host info for TCP/IP and aligning mysqlnd and libmysql
2009-10-19 12:09:48 +00:00
Ulf Wendel
3eeaf566e0
Extending mysqlnd statistics/monitoring. Now counting COM_* commands.
2009-10-16 13:02:01 +00:00
Ulf Wendel
d8dc47d58f
Making mysqlnd emit no warnings when fetching pooled persistent connections that have timed out or are unusable for any other reason - bug #49761
2009-10-15 20:46:08 +00:00
Ulf Wendel
ab4670ee53
Fixing problems when calling connect (again and again) on a valid connection handle. Most of the patch comes from Andrey.
2009-10-15 15:49:40 +00:00
Ulf Wendel
5cb8e9b22a
Updating test because of http://news.php.net/php.cvs/60561
2009-10-01 08:56:28 +00:00
Ulf Wendel
e56e60c3a0
Fixing test
2009-09-29 16:37:50 +00:00
Ulf Wendel
91315a9307
Fixing test
2009-09-28 10:42:36 +00:00
Ulf Wendel
8621a06eed
Trying to respect time limit to please Andrey who must be using slooow hardware...
2009-09-25 13:21:44 +00:00
Andrey Hristov
3828ca158e
Fix mysqli_stmt_attr_set in libmysql mode.
...
mysql_stmt_attr_set returns my_bool instead of int.
If it was int, then 0 is success and !0 is failure, but
for my_bool 0 (FALSE) is failure and !0 is success.
2009-09-25 12:25:54 +00:00
Andrey Hristov
5d3152b181
Fix a crash in the rare case when a persistent connection
...
is found dead, after CHNG_USER. mysql->mysql will be NULL
and segfault will follow.
2009-09-25 11:38:19 +00:00
Ulf Wendel
bd69506171
Large package to check how compression handles package queues.
2009-09-25 10:56:17 +00:00
Andrey Hristov
9b44cbb490
Remove unused variable
2009-09-25 10:55:06 +00:00
Ulf Wendel
a5e4c6f795
Replacing MYSQL_TEST_COMPRESS env var with more generic MYSQL_TEST_CONNECT_FLAGS to be able to test all connection flags. Fixing some test.
2009-09-25 10:54:16 +00:00
Andrey Hristov
eea0660def
Fix error code checking for mysql_stmt_attr_set. There
...
is a test that checks this.
2009-09-25 10:52:29 +00:00
Ulf Wendel
c01b505a44
Proxying as many connect calls as possible to make testing of the compression protocol @ mysqlnd easier. By setting the environment variable MYSQL_TEST_COMPRESS you can tell the tests to set the MYSQLI_CLIENT_COMPRESS flag upon connect.
2009-09-24 12:51:03 +00:00
Ulf Wendel
7b50b0794d
Fixing test
2009-09-24 09:40:24 +00:00
Ulf Wendel
057a62fc52
Coverage for the OO variants of some functions
2009-09-24 08:19:56 +00:00
Ilia Alshanetsky
7eeff10cc0
Fixed unused var
2009-09-23 23:14:17 +00:00
Andrey Hristov
ac93b60f68
MFH:Fix handling of BIT fields for non-PS. We need
...
macros from mysqlnd to be able to convert a bit
stream to a number.
2009-09-22 15:08:11 +00:00
Andrey Hristov
dcb5c5b0a4
MFH: Fix handling of BIT fields in mysqli, when libmysql is used
...
We need to use macros from mysqlnd to be able to read the
bit fields, as they are specially encoded. mysqlnd is always
there, 5.3+, so its macros can be used, even if mysqlnd is
not compiled as library of choice.
2009-09-22 13:59:29 +00:00
Ulf Wendel
75d415efbe
Fixing test
2009-09-22 08:42:44 +00:00
Ulf Wendel
77f44b7926
Fixing test. There is nothing we can do about the MySQL Client Library allocate huge 4GB buffers for some SQL types.
2009-09-22 07:11:50 +00:00
Ulf Wendel
5c67cdf62b
Fixing test. Can't wait to see the new run-tests materialize for detecting skip section parse errors.
2009-09-22 06:59:04 +00:00
Ulf Wendel
6ef632d129
Fixing test
2009-09-21 15:59:22 +00:00
Ulf Wendel
e94d475ad0
Fixing test
2009-09-21 15:24:47 +00:00
Ulf Wendel
e4f41b1f9f
Moving test code around to get test failures down without testing less. Users of the MySQL Client Lib should always call stmt_bind_result after execute - not before.
2009-09-21 14:20:05 +00:00
Ulf Wendel
9afd024715
Fixing test by calling it a known limit. We keept the test failing as a reminder to think about how to handle BIT(32) and up but none of us has an idea. Thinks work fine up to BIT(31) - the limitation should be documented.
2009-09-21 12:02:30 +00:00
Ulf Wendel
47b209a3cd
Fixing test
2009-09-21 11:54:15 +00:00
Ulf Wendel
dc1e7d6d6d
Not nice but neither the MySQL Client Library not mysqlnd are supposed to detect invalid flags. Therefore: fixing test
2009-09-21 10:16:44 +00:00
Ulf Wendel
1a3b7774e6
Fixing mysqli_result_references_mysqlnd.php
2009-09-21 10:06:13 +00:00
Ulf Wendel
a0a8c5832f
Fixing mysqli_get_client_stats.phpt. More testing for MYSQLI_INIT_COMMAND
2009-09-21 09:35:23 +00:00
Ulf Wendel
025e670f54
Fixing test: references has to be collected even if the users disables the collection of statistics. It is needed for memory management.
2009-09-21 08:59:00 +00:00
Ulf Wendel
a77ee71cf0
Fixing test - the standard test table will not accept NULL values for column id
2009-09-21 08:36:14 +00:00
Andrey Hristov
967239727e
MFH:Fix for bug#48909 Segmentation fault in mysqli_stmt_execute
2009-09-18 14:33:08 +00:00
Ulf Wendel
1388912ded
better coverage for mysqli_info
2009-09-17 07:11:25 +00:00
Ulf Wendel
e6cf6693e6
Fix (by Andrey) and test for bug #49442 . Don't use efree() for memory allocated with malloc()... If a connection gets created by mysqli_init(), mysqlnd makes it 'persistent'. 'Persistent' means that mysqlnd uses malloc(). mysqlnd does use malloc() instead of ealloc() because it is unknown if the connection will become a true persistent connection in the sense of ext/mysqli. It is unknown if the user wants a persistent connection or not until the user calls mysqli_real_connect(). To avoid tricky conversions mysqlnd uses malloc(), which sets a private persistent flag in the mysqlnd structures. A precondition for the crash to happen was that the private persistent flag is set. The flag is also set when creating a real persistent connection (in the sense of ext/mysqli) and so the bug can happen with mysql_init()/mysqli_real_connect() and mysql_connect('p:<host>', ...). Therefore we test both cases. Note the (tricky?) difference between the implementation detail'mysqlnd private persistent flag = use malloc()' and persistent connections from a user perspective. Although mysqlnd will always set its private persistent flag and use malloc() for connections created with mysqli_init() it is still up to the user to decide in mysqli_real_connect() if the connection shall become a (true) persistent connection or not.
2009-09-16 17:03:44 +00:00
Ulf Wendel
20005db2a0
Fix and tests for bug #49511 . mysqlnd and the MySQL Client Library (libmysql) use different networking APIs. mysqlnd does use PHP streams whereas libmysql uses its own wrapper of the operating level network calls. PHP sets by default a read timeout of 60s for streams - php.ini, default_socket_timeout. This default applies to all streams that set no other timeout value. mysqlnd has not set any other value and therefore it connections of long running queries can have been cut off after default_socket_timeout seconds resulting in a 2006 - MySQL Server has gone away error message. The MySQL Client Library sets a default timeout of 365 * 24 * 3600 seconds (1year) and waits for other timeouts to happen, e.g. TCP/IP timeouts. mysqlnd now uses the same very long timeout. The value is configurable through a new php.ini setting: mysqlnd.net_read_timeout. mysqlnd.net_read_timeout gets used by any extension (ext/mysql, ext/mysqli, PDO_MySQL) that uses mysqlnd. mysqlnd tells PHP Streams to use mysqlnd.net_read_timeout. Please note that there may be subtle differences between MYSQL_OPT_READ_TIMEOUT from the MySQL Client Library and PHP Streams. E.g. MYSQL_OPT_READ_TIMEOUT is documented to work only for TCP/IP connections and, prior to MySQL 5.1.2, only for Windows. PHP streams may not have this limitation. Please check the streams documentation, if in doubt.
2009-09-16 15:00:54 +00:00
Ulf Wendel
617b4e9bd1
Fix for bug #49357 (MySQLi extension fails to recognize POINT (spatial) colums).
...
Do yourself a favour and use mysqlnd. mysqlnd has no isuses here.
If you insist on using the MySQL Client Library (libmysql) I strongly recommend to use mysqli_stmt_store_result() when fetching geometry data using prepared statements. When streaming data, which is the default for prepared statements, ext/mysqli will have to make a guess on the size of the result buffer it needs. The guess is based on a length reported by the MySQL CLient Library (libmysql). The MySQL Client Library reports 4GB (!) for a POINT - a conservative and safe guess. Consequently, ext/mysqli will try to allocate 4GB of RAM. The true (maximum) size of the column is not available before buffering the result on the client using mysqli_stmt_store_result(). If you call mysqli_stmt_store_result(), the result buffers will not get bigger than needed. However, store_result()/buffering is usually not what you want when you ask for prepared statements.
2009-09-11 13:38:47 +00:00
Ulf Wendel
5dfd12ddb7
Stepping back to PHP 5.2.x and earlier logic of allocating even huge pieces of memory for large BLOB types to avoid data truncation. This fixes the test failure of 005.phpt when using MySQL Client
...
Library (libmysql). The test does pass with mysqlnd because mysqlnd does not have any issues here.
2009-09-11 12:28:47 +00:00
Ulf Wendel
c4c11fd38a
Fixing a crash which must have existed since PHP 5.0. At least the crash can be reproduced with PHP 5.0.6. The crash happens only when using the MySQL Client Library (libmysql) - it does not happen
...
when using mysqlnd.
2009-09-11 12:16:56 +00:00
Ulf Wendel
416ff5872d
Andrey fixed the bug but the test was somewhat borked. Fixing test.
2009-09-09 18:31:00 +00:00
Ulf Wendel
f51e935e96
Tests for http://bugs.php.net/bug.php?id=49357 (libmysql only) . The simple fix suggested in the bug system is not good enough, therefore no fix yet.
2009-09-09 17:10:29 +00:00
Andrey Hristov
67c7a37d9b
Fixed bug #49027 (mysqli_options() doesn't work when using mysqlnd)
2009-08-27 13:16:39 +00:00
Andrey Hristov
43d33e8a99
Fix for bug#46614 Extended MySQLi class gives incorrect empty() result
2009-08-27 12:41:14 +00:00
Jani Taskinen
b312b3af2e
- Revert bad fix for bug #49122 and only enable this when mysqlnd is used
2009-08-04 14:49:33 +00:00
Jani Taskinen
7b411d7cdf
- Fixed bug #49122 (undefined reference to mysqlnd_stmt_next_result on compile with --with-mysqli and MySQL 6.0)
2009-08-02 01:07:38 +00:00
Jani Taskinen
10a7066591
- Fix test
2009-07-30 10:53:04 +00:00
Ulf Wendel
be7dd36297
MFH. Enabling test as requested by the skipif comment... it does pass when slightly modified.
2009-07-06 15:53:14 +00:00
Ulf Wendel
4786cfa4bf
MFH. Fixing mysqlnd version test to run some four previously skipped tests. There is no proper way to check the mysqlnd version. The best one can do is adapt the tests to what PHP 5.3 and PHP 6.0 return today.
2009-07-06 15:45:19 +00:00
Ulf Wendel
556feffbd4
MFH. Adapting (old) tests to current PHP 6 semantics - s/unicode.semantics test/version_compare
2009-07-06 15:08:13 +00:00
Ulf Wendel
f611876b2e
MFH. Adding --CLEAN-- sections to all ext/mysqli tests
2009-07-06 14:39:10 +00:00
Ulf Wendel
b90a412302
MFH. ... to play with large data sets. Currently its only 10MB in size to keep the test runtime short. However, its easy to increase, if you want to test large data sets
2009-07-03 12:14:39 +00:00
Ulf Wendel
26e9c79d4c
MFH. Fixing borked test, again new run-tests.php has found it... Fails with HEAD, passes with 5.3
2009-07-03 08:25:25 +00:00
Ulf Wendel
5ac0398f73
MFH. Fixing borked test - thanks again new run-tests.php tool (and team).
2009-07-03 07:50:10 +00:00
Ulf Wendel
b5455f7a7d
MFH - Adding XFAIL for some tests which expect the zval cache of mysqlnd to be on. It has been disabled for the PHP 5.3.0 release. Adding INI sections to ensure that statistics are collected. Adding tests that check if statistics collection can be disabled
2009-07-01 12:52:58 +00:00
Ulf Wendel
1ad1a2a0af
MFH - Fixing tests - messages/warnings can vary by version
2009-05-29 13:37:08 +00:00
Ulf Wendel
775cc0ca20
MFH - Updating test to reflect API changes.
2009-05-29 13:23:01 +00:00
Ulf Wendel
13d92e6957
MFH - Skip test for libmysql. The MySQL C-API does not support it, mysqlnd does...
2009-05-29 13:12:39 +00:00
Andrey Hristov
c1d46eb502
MFH:Add support for mysql_stmt_store_result() from libmysql 6.0.8+ and 5.4.x
2009-05-29 13:09:47 +00:00
Ulf Wendel
f3f1256332
MFH - 1) The wording of a message can differ by version and by libmysql vs. mysqlnd. 2) %i is better than %s
2009-05-29 13:02:43 +00:00
Ulf Wendel
6252b5ca20
MFH - Behaviour is undefined with libmysql, accept whatever libmysql may return. With mysqlnd you get the defined value of -1 to indicate 'no value'.
2009-05-29 12:55:55 +00:00
Ulf Wendel
3f17909a60
MFH - 'Fixing' test to reflect a libmysql vs. mysqlnd difference. With libmysql it is not defined what mysql_stmt_store_result() shall return when one tries to store the (non-existing) result set of a failed SQL statement, http://dev.mysql.com/doc/refman/6.0/en/mysql-stmt-store-result.html . mysqlnd will detect the SQL failure and return false. libmysql will return true. If you want libmysql to change, file a bug report at MySQL... I don't think there is a good way to work around this in the extension itself.
2009-05-29 11:59:26 +00:00
Ulf Wendel
2445a242ec
MFH - Another detail where mysqlnd is superior than libmysql. The mysql_info() from libmysql does not support SELECT: http://dev.mysql.com/doc/refman/6.0/en/mysql-info.html . mysqlnd does support it. Libmysql feature request filed http://bugs.mysql.com/bug.php?id=45189
2009-05-29 11:01:06 +00:00
Ulf Wendel
a027a64d73
MFH: Weaker test - libmysql/server error messages can differ by version
2009-05-29 10:34:23 +00:00
Ulf Wendel
396f5803e8
MFH - Weaker test: functions are only available if HAVE_EMBEDDED_MYSQLI is set. There is probably no proper way to check this condition in the user land.
2009-05-29 10:25:49 +00:00
Ulf Wendel
19bdbc49c3
MFH - Skip when using libmysql. Likely a regression bug - http://bugs.mysql.com/bug.php?id=45184
2009-05-29 10:15:50 +00:00
Andrey Hristov
a3aaa2398d
MFH:The option has changed the name, hence we change the test
2009-05-29 08:58:32 +00:00
Ulf Wendel
19194ff51b
MFH - Asynchronous queries are mysqlnd only. If you want them with libmysql, ping JimW who works on Connector/C.
2009-05-28 18:57:34 +00:00
Ulf Wendel
2eccc6f2bf
MFH - Andrey needs to have a look at this one. The bug report itself is bogus. However, the bug report shows a result set and that is wrong.
2009-05-28 18:28:08 +00:00
Andrey Hristov
fe55da71bb
MFH:
...
Forgot to commit this one, of the ANSI_QUOTES fame
2009-05-28 18:10:40 +00:00
Andrey Hristov
cabce152f9
MFH:Fix again the tests for ANSI_QUOTES
2009-05-28 18:00:28 +00:00
Andrey Hristov
804f6138a6
MFH:Fix a valgrind warning as well as more trace log information
2009-05-28 17:49:29 +00:00
Ulf Wendel
4645f51360
MFH - I had accidently removed Andrey's path to work with ANSI QUOTES... fixing what I broke (part 1)
2009-05-28 15:49:14 +00:00
Ulf Wendel
7926037318
MFH - what a wonderful word. After the change in HEAD its easy to do a merge. The merge removes all UEXPECTF sections from the old days. Yes, there have been UEXPECTFs in 5_3. I hope PHP 6 won't change again over time... :-)
2009-05-28 14:33:43 +00:00
Andrey Hristov
90a8a7f857
MFH:Fix a test, UNSIGNED is expected
2009-05-28 10:16:41 +00:00
Andrey Hristov
04d8609e9f
MFH: Fix failures when the server is running with ANSI_QUOTES
2009-05-28 09:58:36 +00:00
Andrey Hristov
bf1a698e51
MFH:
...
Less warnings by usage of proper modifier
2009-05-27 20:05:37 +00:00
Andrey Hristov
91a4502914
MFH:because we use int64_t we need corresponding printf modifiers. the type
...
can be different on 32 and 64 bit, thus we can't use ld and lld but
C helps us with inttypes.h and PRId64 and PRIu64 modifiers (without the %)
2009-05-27 19:57:11 +00:00
Andrey Hristov
07fc51d559
MFH: Fix tests when the server is running with ANSI_QUOTES
2009-05-27 18:18:58 +00:00
Ulf Wendel
6cf02c738b
Crappy anonymous MySQL user account... trying to make the test more portable.
2009-05-27 17:54:30 +00:00
Ulf Wendel
774f562375
The test is bogus as long as there is no (proper) way to detect from the PHP userland if persistent connections do a change user or not. If they do is controlled by define at the moment.
2009-05-27 17:52:32 +00:00
Ulf Wendel
b3645db1ce
Testing a little further into the direction of a possible mysqlnd vs. libmysql compatibility break or a libmysql bug. It is not clearly stated in the MySQL C-API documentation what excactly happens on stmt_reset().
2009-05-27 17:50:09 +00:00
Ulf Wendel
a39d92c144
Trying to get test failures down by fixing tests.
2009-05-27 17:46:14 +00:00
Andrey Hristov
10bc558aca
MFH: Revert in regard of my_ulonglong which should be used instead of long
...
which can be anything.
2009-05-27 15:05:28 +00:00
Kalle Sommer Nielsen
e26710bfc4
Fixed compiler warning again, uint8_t is only available with mysqlnd. This is not affecting HEAD
2009-05-23 02:58:15 +00:00
Ilia Alshanetsky
52f599687a
Fixed build
2009-05-20 13:10:49 +00:00
Kalle Sommer Nielsen
f02ebe4a08
MFH: Fix compiler warnings in ext/mysql, ext/mysqli and ext/pdo_mysql
2009-05-20 08:30:12 +00:00
Johannes Schlüter
611c453598
MFH: Fix mysqli pconnects to properly reset connection status by default
2009-01-27 15:35:34 +00:00
Johannes Schlüter
074b084852
MFH: export mysql_refresh
...
[DOC] This makes mysql_refresh() as described in
http://dev.mysql.com/doc/refman/6.0/en/mysql-refresh.html
available as mysqli_Refresh() and mysqli->refresh()
MYSQLI_REFRESH_BACKUP_LOG is only available when linking libmysql 6.0
or mysqlnd
2009-01-22 21:01:58 +00:00
Johannes Schlüter
e4a348d782
MFH: Fix #47050 mysqli_poll() modifies improper variables
2009-01-12 14:04:32 +00:00
Johannes Schlüter
74cfc5f3d7
MFH Fix #45940 MySQLI OO does not populate connect_error property on failed
...
connect
2009-01-12 12:56:01 +00:00
Johannes Schlüter
7d3d47fa27
MFH: Fixed bug #46653
2009-01-09 14:30:00 +00:00
Johannes Schlüter
1e3e6cdf29
MFH: Proper ctor usage ( Fix #46044 )
2009-01-07 16:32:08 +00:00
Sebastian Bergmann
08659c2dcd
MFH: Bump copyright year, 3 of 3.
2008-12-31 11:15:49 +00:00
Ilia Alshanetsky
c9f030f576
Fixed bug #46887 (Invalid calls to php_error_docref())
...
# Patch by oeriksson at mandriva dot com and crrodriguez at opensuse dot org
2008-12-18 20:02:20 +00:00
Johannes Schlüter
a022cd1d5e
MFH: Change to zend_parse_parameters
2008-11-28 20:38:20 +00:00
Dmitry Stogov
7d4fd3fd38
Fixed bug #46409 (__invoke method called outside of object context when using array_map)
2008-11-27 19:01:23 +00:00
Etienne Kneuss
3919b16f04
MFH: Fix #46241 (stacked error_handlers, error_handling in general)
2008-11-19 02:00:53 +00:00
Andrey Hristov
825034cea5
MFH:
...
Asynchronous queries for mysqli, when mysqlnd is enabled.
Includes 4 tests for mysqli_poll
2008-11-18 17:02:18 +00:00
Felipe Pena
fc2fb50d09
- MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro
2008-11-17 11:28:01 +00:00
Andrey Hristov
abf612ba59
MFH: Remove unneeded cast
2008-11-10 20:06:23 +00:00
Ilia Alshanetsky
757087553b
MFH: Fixed compiler warnings
2008-11-10 19:04:05 +00:00
Felipe Pena
7a37fa2d6b
- Revert ZEND_BEGIN_ARG_INFO change
2008-11-02 21:19:39 +00:00
Andrey Hristov
4f5895a4d2
MFH: Fix warnings in sprintf
2008-10-31 20:31:27 +00:00
Andrey Hristov
ec20906b1b
Fix that instance too - mysql_get_client_version() returns unsigned long
2008-10-28 15:59:42 +00:00
Johannes Schlüter
04d9bbe65e
MFH: Fix #46285 (lastInsertId() returns "0" when a deferenced PDOStatement is
...
executed)
2008-10-27 17:21:22 +00:00
Andrey Hristov
34ca27a191
MFH: Fix an issue with mysqli.default_port not being used
2008-10-27 14:34:35 +00:00
Andrey Hristov
4df718a477
MFH:
...
Warning if the library API version differs from the headers used to compile.
Patch versions are not considered but major.minor
Fix build of ext/mysql with 4.0.x and pre.
2008-10-27 12:09:36 +00:00
Felipe Pena
df10005563
- MFH: Added 'static' into ZEND_BEGIN_ARG_INFO_EX macro
2008-10-24 14:35:40 +00:00
Pierre Joye
86a352afda
- Declarations MUST BE done in the beginning of a context
2008-10-03 16:19:49 +00:00
Andrey Hristov
bf20aa12c7
MFH:Fix for bug#46019 MySQLi::init() leaks memory
2008-09-19 11:38:46 +00:00
Antony Dovgal
46ab8303e1
fix test
2008-09-18 08:40:02 +00:00
Andrey Hristov
8bb2465a51
MFH:
...
Add float conversions too. Float users should understand how float works!!!
2008-09-15 18:09:20 +00:00
Antony Dovgal
f10dd24e79
cleanup garbage
2008-08-26 11:06:09 +00:00
Antony Dovgal
838ac5fdaa
fix typo
2008-08-26 10:59:10 +00:00
Johannes Schlüter
f869bbfc1b
MFH: Fix #45763 (mysqli::multi_query does not work with mysqlnd)
2008-08-11 12:33:56 +00:00
Etienne Kneuss
c77ca4c34a
MFH: Fix error_handling usage in various extensions
2008-08-08 22:07:07 +00:00
Felipe Pena
e304515ddb
- MFH: Added parameter TSRMLS_DC in zend_is_callable()
2008-08-02 04:46:07 +00:00
Andrey Hristov
7833cf9f10
MFH: Fixed bug#45019 Segmentation fault with SELECT ? and UNION
2008-07-25 12:46:03 +00:00
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