Commit Graph

63 Commits

Author SHA1 Message Date
Xinchen Hui
d4a50542ea Eliminated compile warning "comparison is always false due to limited range of data type"
Fixed test failed due to mysql_pconnect throw warning
Fixed test failed when host mysql server doesn't listen on 3306
2011-08-24 10:15:47 +00:00
Andrey Hristov
ee96b2df8f Don't run the test on windows, Unix specific 2011-08-22 11:07:35 +00:00
Andrey Hristov
0aa6354a2d Fix Bug #55473 mysql_pconnect leaks file descriptors on reconnect
The fix is for now in 5_4 and trunk, to be merged into 5_3 after 5.3.8
is packaged (expected today). The test case goes to all branches
2011-08-22 10:42:43 +00:00
Ulf Wendel
e5e8ca7f43 Handle deprecation messages differently in tests to reduce test differences between 5.3 and trunk: suppress warnings by default, check warnings in a dedicated test 2011-01-25 14:01:00 +00:00
Andrey Hristov
5549e066f2 Proper fix for
Bug #53503      mysqli::query returns false after successful LOAD DATA query
which fixes als #56349, same behavior but in ext/mysql. Both due to a bug
in mysqlnd. Never was a problem with libmysql.
Also fixed the 53503's test case as it always reported PASS, even when there
should have been a failure.
2011-01-07 14:22:30 +00:00
Andrey Hristov
cfac5f5b67 extending the API interface - plugins can register
themselves with a structure and can be searched.
Every plugin can have statistics and they are shown
under the statistics of mysqlnd in MINFO.
2010-12-28 15:16:21 +00:00
Andrey Hristov
00825de6a2 Use PHP_DEP_FE - good for reflection 2010-08-17 17:40:31 +00:00
Andrey Hristov
8600c1b4da Deprecate mysql_list_dbs, as mysql_list_tables is already deprecated.
As well as mysql_list
2010-08-17 15:37:44 +00:00
Ulf Wendel
c71d35120c Don't bail if there is another extension that exports constants starting with mysql<something> 2010-06-18 09:56:18 +00:00
Ulf Wendel
df3b9225fd Make the tests pass with sql strict mode enabled 2010-06-08 15:47:51 +00:00
Kalle Sommer Nielsen
dd8e59da8f Removed safe_mode
* Removed ini options, safe_mode*
 * Removed --enable-safe-mode --with-exec-dir configure options on Unix
 * Updated extensions, SAPI's and core
 * php_get_current_user() is now declared in main.c, thrus no need to include safe_mode.h anymore
2010-04-26 23:53:30 +00:00
Andrey Hristov
7868bca437 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
Adam Harvey
bdbb2e77ca Fixed bug #51242 (Empty mysql.default_port does not default to 3306 anymore, but 0). 2010-03-09 05:08:31 +00:00
Ulf Wendel
0004679f8a 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
d7f1cfe6a4 Fixing test: of course, libmysql won't care about open_basedir, but mysqlnd should 2009-11-05 12:14:08 +00:00
Ulf Wendel
ea3ef35f19 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
5ce96c2b3b 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
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
0efa2445ad Making test pass when MySQL runs on Win* 2009-10-20 08:41:11 +00:00
Ulf Wendel
9bb4db8781 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
9408303390 Fixing a leak in mysqlnd when passing invalid fetch modes to mysqlnd. 2009-09-30 14:39:33 +00:00
Ulf Wendel
fbfd13310b Allow setting of default connection flags through the environment variable MYSQL_TEST_CONNECT_FLAGS 2009-09-28 10:39:42 +00:00
Ulf Wendel
26b4248799 Fixing test 2009-09-22 11:58:46 +00:00
Andrey Hristov
8aae3baa45 MFH:Fix for bug#48754 mysql_close() crash php when no handle specified 2009-09-18 10:49:31 +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
31573498d8 Some extra test coverage for http://bugs.php.net/bug.php?id=48754 . 2009-09-09 17:16:24 +00:00
Ulf Wendel
5f260e14b2 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
f97132fe1a fix tests 2009-08-29 19:18:27 +00:00
Rasmus Lerdorf
12bad6796f Fix a few more tests 2009-08-03 05:17:53 +00:00
Rasmus Lerdorf
f42081c6a2 Given that we have a DB connection by the time we get here,
mysql_affected_rows() cannot return false.
2009-08-03 04:57:31 +00:00
Ulf Wendel
759cc732cf MFH. Fixing tests to run with SQL_MODE=ANSI_QUOTES as well. 2009-07-07 11:32:17 +00:00
Ulf Wendel
f31fc6df21 MFH. 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:46 +00:00
Ulf Wendel
5147f6cf8d MFH. 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:05:37 +00:00
Ulf Wendel
ed05c54d2e MFH - Test for bug #48754 2009-07-02 07:42:48 +00:00
Ulf Wendel
b6bd0f6806 MFH - 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:33:31 +00:00
Johannes Schlüter
b42f9a7f7d MFH: mysql_db_query() is always deprecated 2009-03-25 10:27:38 +00:00
Antony Dovgal
a59180232e fix test 2009-02-19 12:13:50 +00:00
Johannes Schlüter
b489d3a69f MFH: Fix #47438 mysql_fetch_field ignores zero offse 2009-02-18 16:34:47 +00:00
Johannes Schlüter
1ece804688 MFH: Fix mysql_fetch_* and tests after param parsing changes 2008-12-01 21:20:47 +00:00
Johannes Schlüter
cfc3bfdabb MFH: New param parsing for ext/mysql 2008-11-28 20:23:49 +00:00
Antony Dovgal
805f552cd3 fix skipif sections 2008-07-13 21:40:49 +00:00
Dmitry Stogov
cafae0dc4b Fixed test 2008-06-11 10:08:14 +00:00
Dmitry Stogov
337ea89883 Fixed test 2008-06-11 09:58:32 +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
Nuno Lopes
25e6cd1a38 remove duplicated sections 2008-03-17 17:19:48 +00:00
Johannes Schlüter
14496417d0 - MFH: Fix typo in skipif 2008-03-09 01:07:01 +00:00
Felipe Pena
a7dd2ad68c Fix test 2008-03-08 23:13:45 +00:00
Andrey Hristov
c2a5e180c7 Fix a test 2008-02-06 15:34:35 +00:00
Antony Dovgal
92294297e5 MFH: fix test 2008-01-18 12:48:35 +00:00
Ulf Wendel
f8156f1607 Trying to skip tests if they can't connect to the DB server.
Currently they have failed by default. Note also the environment
variable MYSQL_TEST_SKIP_CONNECT_FAILURE to control the default (skip or fail)
2007-10-12 11:57:18 +00:00