Ulf Wendel
7f159bfb9c
The internal zval cache has been removed and not been reintroduced... remove corresponding test code
2010-01-04 15:05:34 +00:00
Ulf Wendel
74db20bb3b
Fixing test: of course, libmysql won't care about open_basedir, but mysqlnd should
2009-11-05 12:14:08 +00:00
Ulf Wendel
afcc167df6
Fixing test: it didn't do a select_db and gave a false-positive with libmysql
2009-11-05 11:51:21 +00:00
Ulf Wendel
6553871f9e
Skipping if MySQL old password algorithm is in use as it seems to be the case on gcov.php.net
2009-11-04 16:09:07 +00:00
Ulf Wendel
ffbf8c9595
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
2a2598a41e
Making test pass when MySQL runs on Win*
2009-10-20 08:41:11 +00:00
Ulf Wendel
121aceb04e
Bail if connect.inc gets included twice. Including twice is most likely a 'bug'. See also http://news.php.net/php.cvs/60720
2009-10-20 08:23:06 +00:00
Ulf Wendel
d79cba2afd
Fixing a leak in mysqlnd when passing invalid fetch modes to mysqlnd.
2009-09-30 14:39:33 +00:00
Ulf Wendel
fff7ef9412
Allow setting of default connection flags through the environment variable MYSQL_TEST_CONNECT_FLAGS
2009-09-28 10:39:42 +00:00
Ulf Wendel
341e125d60
Fixing test
2009-09-22 11:58:46 +00:00
Andrey Hristov
b30dfcd475
Fix for bug#48754 mysql_close() crash php when no handle specified
2009-09-18 10:46:51 +00:00
Ulf Wendel
8e42cbfeac
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
59a52247e7
Some extra test coverage for http://bugs.php.net/bug.php?id=48754 .
2009-09-09 17:16:24 +00:00
Ulf Wendel
5254c6f372
Next attempt to fix http://bugs.php.net/bug.php?id=48745 . Patch by Andrey.
2009-09-09 17:03:03 +00:00
Antony Dovgal
3a080e82f5
fix tests
2009-08-29 19:18:27 +00:00
Ulf Wendel
8f617842f3
Fixing tests to run with SQL_MODE=ANSI_QUOTES as well.
2009-07-07 11:31:45 +00:00
Ulf Wendel
3c81e71e5a
Global s/ini_get('unicode.semantics')/version check/ . Early PHP 6 times are gone. I hope unicode logic will not change any more
2009-07-03 08:42:25 +00:00
Ulf Wendel
2d884dd1e1
Adding CLEAN sections, fixing some SKIPIF sections. Cool new run-tests.php, Zoe (and other) - its a great help to detect stinky SKIPIF and CLEAN
2009-07-02 10:04:25 +00:00
Ulf Wendel
2bca33e0d7
Test for bug #48754
2009-07-02 07:42:34 +00:00
Ulf Wendel
726a4816e4
Changing tests to run with both PHP 6 and PHP 5.3 to make future MFH easier. Basically three changes over all files: a) s/unicode(/%unicode|string% b) s/[u/[%u|b% c) s/unicode.semantics/version_compare
2009-07-01 15:31:32 +00:00
Johannes Schlüter
3a76cc254f
mysql_db_query() is always deprecated
2009-03-25 10:27:22 +00:00
Antony Dovgal
9f00440b9a
fix test
2009-02-19 12:13:47 +00:00
Johannes Schlüter
ea84127c9e
Fix #47438 mysql_fetch_field ignores zero offse
2009-02-18 16:33:28 +00:00
Felipe Pena
5a7607d925
- Fixed tests (removed UEXPECT(F) section)
2009-01-05 18:22:01 +00:00
Johannes Schlüter
b79774409e
Fix mysql_fetch_* and tests after param parsing changes
2008-12-01 21:20:27 +00:00
Johannes Schlüter
aabcde4dc6
New param parsing for ext/mysql
2008-11-28 20:21:35 +00:00
Dmitry Stogov
c7d50cb478
Fixed test
2008-06-11 10:07:20 +00:00
Dmitry Stogov
d01509ced8
Fixed test
2008-06-11 09:58:45 +00:00
Andrey Hristov
5da78b297b
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:04:58 +00:00
Felipe Pena
3ed829f10e
- Added some UEXPECTs
...
- Fixed some tests
2008-03-22 14:58:29 +00:00
Dmitry Stogov
a0378d3514
Fixed test
2008-03-18 06:44:54 +00:00
Johannes Schlüter
0defdae045
- Fix typo in skipif
2008-03-09 01:06:38 +00:00
Felipe Pena
d005d404e0
Fix test
2008-03-08 23:14:16 +00:00
Andrey Hristov
533618d2a0
Remove dead code
2008-02-08 09:57:01 +00:00
Antony Dovgal
98164c99ac
fix test
...
the library vresion is actually exposed by ext/mysqli, not ext/mysql
2008-01-18 12:48:22 +00:00
Ulf Wendel
2ea4b6ba06
Same as for PHP_5_3: 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:32:39 +00:00
Ulf Wendel
23f2c54784
Test changes for HEAD = synching with 5_3
2007-10-10 10:56:33 +00:00
Ulf Wendel
b67be59f4e
Adding tests to ext/mysql in HEAD = synching with 5_3
2007-10-10 10:55:52 +00:00
Ulf Wendel
fb4967900d
Same as for ext/mysqli tests: addition of a new environment variable
...
MYSQL_TEST_SKIP_CONNECT_FAILURE which controls how to deal with connection
problems. If MYSQL_TEST_SKIP_CONNECT_FAILURE = false (default) connection
problems will make a test fail. If you set MYSQL_TEST_SKIP_CONNECT_FAILURE
to any value that evaluates to true in PHP, a test which cannot connect to
the database will be skipped.
2007-08-09 11:53:17 +00:00
Ulf Wendel
307d9364ab
Whitespace (space to tab)/CS
...
With this commit the MySQL internal mysqlnd set of ext/mysql tests is in
sync with HEAD. It's likely that php.net/HEAD fails on quite some tests.
Using ext/mysql from the MySQL internal mysqlnd SVN there should be zero
failures. Merging the MySQL internal mysqlnd SVN into HEAD will happen
soon so that we get a bug free version on php.net in the near future.
2007-07-23 07:51:37 +00:00
Ulf Wendel
33c87b15d8
1) Whitespace/CS
...
2) Playing with column aliases
2007-07-12 16:04:15 +00:00
Ulf Wendel
d649c2e820
Testing SELECT "a" AS "". This is nice to test strcmp() and similar...
2007-07-12 16:03:10 +00:00
Ulf Wendel
e8ed078f81
Blame me for not checking in a version that's been cleaned up with
...
regards to Whitespace/CS...
2007-07-12 14:24:53 +00:00
Ulf Wendel
2135a5b3f6
Whoever has hacked this function into ext/mysql, here's a "test" for it.
2007-07-12 14:23:56 +00:00
Ulf Wendel
9744d3f9a3
Checking the phpinfo() entries of ext/mysql
2007-07-12 14:22:47 +00:00
Ulf Wendel
d452938ee8
Adding test for mysql_list_tables()
2007-07-12 14:22:15 +00:00
Ulf Wendel
625c02c844
Checks if ext/mysql exposes all constants it should expose.
2007-07-12 14:01:12 +00:00
Ulf Wendel
2d1c3ec2c9
No skipping needed anymore, function is there even with mysqlnd.
2007-07-12 13:58:41 +00:00
Ulf Wendel
e6e029e399
A bit more verbose message in case of problems. It's been helpful to
...
debug a cross-server version issue.
2007-07-12 13:57:36 +00:00
Ulf Wendel
94e0e4c322
1) Whitespace/CS
...
2) Fixing [U]EXPECTF to be portable among different MySQL Server versions
2007-07-12 13:50:51 +00:00