Andrey Hristov
94cd357f5b
Make it coupled - what is allocated with mnd_ should be freed
...
with mnd_ and vice versa.
Added mnd_pestrndup and mnd_pestrdup, which wrap the normal
calls to be able to track this calls.
Fixed some failing tests.
2010-03-29 17:04:16 +00:00
Andrey Hristov
ec36ac1610
Fix tests that fail when the MySQL's socket file is not /tmp/mysql.sock
...
as it is in when compiled from source and the default for mysqlnd.
SuSE for example uses /var/run/mysql/mysql.sock . Also, sql.safe_mode
(ext/mysql and ingres) needs the socket.
Fix possible crashes in mysqlnd. When packets are shorter, functions should
return error.
2010-03-26 16:58:25 +00:00
Johannes Schlüter
eb0de2af90
revert 293939 Fixed bug #50636 (MySQLi_Result sets values before calling
...
constructor)
2010-02-11 21:42:48 +00:00
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
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
Ulf Wendel
e2a2205a58
Test for what Andrey has found with 16M packets
2009-12-17 14:15:28 +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
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
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
Ulf Wendel
bd69506171
Large package to check how compression handles package queues.
2009-09-25 10:56:17 +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
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
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