]> granicus.if.org Git - php/log
php
15 years agoFix skipifs to accept Oracle 11.2
Christopher Jones [Fri, 2 Oct 2009 04:19:48 +0000 (04:19 +0000)]
Fix skipifs to accept Oracle 11.2

15 years ago- Fixed bug #49738 (calling mcrypt after mcrypt_generic_deinit crashes).
Sriram Natarajan [Fri, 2 Oct 2009 00:13:53 +0000 (00:13 +0000)]
- Fixed bug #49738 (calling mcrypt after mcrypt_generic_deinit crashes).

15 years ago- fix #49732, fix crash when timestamp conversion fails
Pierre Joye [Thu, 1 Oct 2009 13:55:16 +0000 (13:55 +0000)]
- fix #49732, fix crash when timestamp conversion fails

15 years agoUpdating test because of http://news.php.net/php.cvs/60561
Ulf Wendel [Thu, 1 Oct 2009 08:56:28 +0000 (08:56 +0000)]
Updating test because of http://news.php.net/php.cvs/60561

15 years agoAdd xmltype_02.phpt. Add XFAIL to xmltype_01 for PHP 6
Christopher Jones [Thu, 1 Oct 2009 06:22:32 +0000 (06:22 +0000)]
Add xmltype_02.phpt.  Add XFAIL to xmltype_01 for PHP 6

15 years agoPECL Bug #16842 (oci_error return false when NO_DATA_FOUND is raised)
Christopher Jones [Thu, 1 Oct 2009 05:51:11 +0000 (05:51 +0000)]
PECL Bug #16842 (oci_error return false when NO_DATA_FOUND is raised)

15 years agoFix ZTS build
Andrey Hristov [Wed, 30 Sep 2009 23:34:56 +0000 (23:34 +0000)]
Fix ZTS build

15 years agoUse mnd_ wrappers wherever possible. Needed for
Andrey Hristov [Wed, 30 Sep 2009 23:13:43 +0000 (23:13 +0000)]
Use mnd_ wrappers wherever possible. Needed for
statistics.

15 years agoFix trace output. DBG_RETURN should be used in traced
Andrey Hristov [Wed, 30 Sep 2009 22:26:19 +0000 (22:26 +0000)]
Fix trace output. DBG_RETURN should be used in traced
functions.

15 years agoFixed bug #48805 (IPv6 socket transport is not working).
Ilia Alshanetsky [Wed, 30 Sep 2009 20:48:41 +0000 (20:48 +0000)]
Fixed bug #48805 (IPv6 socket transport is not working).

15 years agoFixing a leak in mysqlnd when passing invalid fetch modes to mysqlnd.
Ulf Wendel [Wed, 30 Sep 2009 14:39:33 +0000 (14:39 +0000)]
Fixing a leak in mysqlnd when passing invalid fetch modes to mysqlnd.

15 years ago- Fixed test
Felipe Pena [Wed, 30 Sep 2009 13:30:32 +0000 (13:30 +0000)]
- Fixed test

15 years agopcntl_exec() should inherit environment in case it's not provided as an argument
Dmitry Stogov [Wed, 30 Sep 2009 13:04:28 +0000 (13:04 +0000)]
pcntl_exec() should inherit environment in case it's not provided as an argument

15 years ago- restore W3 flag to get usefull errors (unused vars, etc.)
Pierre Joye [Wed, 30 Sep 2009 11:53:29 +0000 (11:53 +0000)]
- restore W3 flag to get usefull errors (unused vars, etc.)

15 years agoFixed bug #49517 (cURL's CURLOPT_FILE prevents file from being deleted after fclose).
Ilia Alshanetsky [Wed, 30 Sep 2009 02:34:17 +0000 (02:34 +0000)]
Fixed bug #49517 (cURL's CURLOPT_FILE prevents file from being deleted after fclose).

15 years agoFixing test
Ulf Wendel [Tue, 29 Sep 2009 16:37:50 +0000 (16:37 +0000)]
Fixing test

15 years agoFixing tests for head and wrong SKIPIF blocks
Rafael Machado Dohms [Tue, 29 Sep 2009 14:34:06 +0000 (14:34 +0000)]
Fixing tests for head and wrong SKIPIF blocks

15 years agoAdd missing open_basedir check in posix_mkfifo
Rasmus Lerdorf [Tue, 29 Sep 2009 14:03:49 +0000 (14:03 +0000)]
Add missing open_basedir check in posix_mkfifo

15 years agoFix date_sunrise/date_sunset tests
Rasmus Lerdorf [Tue, 29 Sep 2009 13:56:51 +0000 (13:56 +0000)]
Fix date_sunrise/date_sunset tests

15 years agoAdding tests for bug #49692
Rafael Machado Dohms [Mon, 28 Sep 2009 22:57:41 +0000 (22:57 +0000)]
Adding tests for bug #49692

15 years agoFix for bug #49698
Rasmus Lerdorf [Mon, 28 Sep 2009 13:29:53 +0000 (13:29 +0000)]
Fix for bug #49698

15 years ago- fix TS build, this macro contains code and declaration, always put it right after...
Pierre Joye [Mon, 28 Sep 2009 12:54:23 +0000 (12:54 +0000)]
- fix TS build, this macro contains code and declaration, always put it right after your declaration

15 years agoFixing test
Ulf Wendel [Mon, 28 Sep 2009 10:42:36 +0000 (10:42 +0000)]
Fixing test

15 years agoAllow setting of default connection flags through the environment variable MYSQL_TEST...
Ulf Wendel [Mon, 28 Sep 2009 10:39:42 +0000 (10:39 +0000)]
Allow setting of default connection flags through the environment variable MYSQL_TEST_CONNECT_FLAGS

15 years ago- Fixed tests
Felipe Pena [Sat, 26 Sep 2009 17:59:33 +0000 (17:59 +0000)]
- Fixed tests

15 years ago- Fixed tests
Felipe Pena [Sat, 26 Sep 2009 16:54:08 +0000 (16:54 +0000)]
- Fixed tests

15 years agoRefix bug #49558 as per bug #49676
Rasmus Lerdorf [Sat, 26 Sep 2009 00:53:59 +0000 (00:53 +0000)]
Refix bug #49558 as per bug #49676

15 years agoTrying to respect time limit to please Andrey who must be using slooow hardware...
Ulf Wendel [Fri, 25 Sep 2009 13:21:44 +0000 (13:21 +0000)]
Trying to respect time limit to please Andrey who must be using slooow hardware...

15 years agoFix mysqli_stmt_attr_set in libmysql mode.
Andrey Hristov [Fri, 25 Sep 2009 12:25:54 +0000 (12:25 +0000)]
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.

15 years agoFix a crash in the rare case when a persistent connection
Andrey Hristov [Fri, 25 Sep 2009 11:38:19 +0000 (11:38 +0000)]
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.

15 years agoLarge package to check how compression handles package queues.
Ulf Wendel [Fri, 25 Sep 2009 10:56:17 +0000 (10:56 +0000)]
Large package to check how compression handles package queues.

15 years agoRemove unused variable
Andrey Hristov [Fri, 25 Sep 2009 10:55:06 +0000 (10:55 +0000)]
Remove unused variable

15 years agoReplacing MYSQL_TEST_COMPRESS env var with more generic MYSQL_TEST_CONNECT_FLAGS...
Ulf Wendel [Fri, 25 Sep 2009 10:54:16 +0000 (10:54 +0000)]
Replacing MYSQL_TEST_COMPRESS env var with more generic MYSQL_TEST_CONNECT_FLAGS to be able to test all connection flags. Fixing some test.

15 years agoFix error code checking for mysql_stmt_attr_set. There
Andrey Hristov [Fri, 25 Sep 2009 10:52:29 +0000 (10:52 +0000)]
Fix error code checking for mysql_stmt_attr_set. There
is a test that checks this.

15 years agoFix possible crash when conn is NULL
Andrey Hristov [Fri, 25 Sep 2009 10:37:44 +0000 (10:37 +0000)]
Fix possible crash when conn is NULL

15 years ago- Fix test
Felipe Pena [Fri, 25 Sep 2009 02:07:41 +0000 (02:07 +0000)]
- Fix test

15 years ago- Fixed mem leak
Felipe Pena [Fri, 25 Sep 2009 01:46:58 +0000 (01:46 +0000)]
- Fixed mem leak

15 years agoMake tempnam() return FALSE on error as documented
Ilia Alshanetsky [Thu, 24 Sep 2009 18:59:28 +0000 (18:59 +0000)]
Make tempnam() return FALSE on error as documented

15 years ago- Fixed bug #49571 (CURLOPT_POSTREDIR not implemented).
Sriram Natarajan [Thu, 24 Sep 2009 18:20:49 +0000 (18:20 +0000)]
- Fixed bug #49571 (CURLOPT_POSTREDIR not implemented).

15 years ago- Fix the build issue with php_mysqlnd_config.h ending up in wrong build directory
Jani Taskinen [Thu, 24 Sep 2009 18:01:17 +0000 (18:01 +0000)]
- Fix the build issue with php_mysqlnd_config.h ending up in wrong build directory

15 years agoFixed bug #49647 (DOMUserData does not exist)
Rob Richards [Thu, 24 Sep 2009 13:18:22 +0000 (13:18 +0000)]
Fixed bug #49647 (DOMUserData does not exist)

15 years agoProxying as many connect calls as possible to make testing of the compression protoco...
Ulf Wendel [Thu, 24 Sep 2009 12:51:03 +0000 (12:51 +0000)]
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.

15 years agofix memleak
Rob Richards [Thu, 24 Sep 2009 12:40:59 +0000 (12:40 +0000)]
fix memleak

15 years agosave LDFLAGS in EXTRA_LDFLAGS before unsetting
Antony Dovgal [Thu, 24 Sep 2009 10:43:13 +0000 (10:43 +0000)]
save LDFLAGS in EXTRA_LDFLAGS before unsetting
this patch makes sure that LDFLAGS are taken into account when
configuring the build

15 years agoFixing test
Ulf Wendel [Thu, 24 Sep 2009 09:40:24 +0000 (09:40 +0000)]
Fixing test

15 years agoCoverage for the OO variants of some functions
Ulf Wendel [Thu, 24 Sep 2009 08:19:56 +0000 (08:19 +0000)]
Coverage for the OO variants of some functions

15 years agoFixed tests ("\r" and "\n" mismatch)
Dmitry Stogov [Wed, 23 Sep 2009 16:34:05 +0000 (16:34 +0000)]
Fixed tests ("\r" and  "\n" mismatch)

15 years agoFixed tests ("\r" and "\n" mismatch)
Dmitry Stogov [Wed, 23 Sep 2009 15:46:10 +0000 (15:46 +0000)]
Fixed tests ("\r" and  "\n" mismatch)

15 years ago- Fixed bug #49354 (mb_strcut() cuts wrong length when offset is within a
Moriyoshi Koizumi [Wed, 23 Sep 2009 15:22:47 +0000 (15:22 +0000)]
- Fixed bug #49354 (mb_strcut() cuts wrong length when offset is within a
  multibyte character).

(This bug was introduced by the commit by r202895. Please double-check the
 specification of the function you are going to *fix*.)

15 years agoRemoved irrelevant test
Dmitry Stogov [Wed, 23 Sep 2009 14:15:52 +0000 (14:15 +0000)]
Removed irrelevant test

15 years agoFixed a bug in parameter passing/conversion API which caused tons of memleak and...
Dmitry Stogov [Wed, 23 Sep 2009 13:51:50 +0000 (13:51 +0000)]
Fixed a bug in parameter passing/conversion API which caused tons of memleak and was the reason of ~1500 test failurs

15 years agoFixed ext/standard/tests/streams/stream_get_contents_002.phpt
Dmitry Stogov [Wed, 23 Sep 2009 10:25:54 +0000 (10:25 +0000)]
Fixed ext/standard/tests/streams/stream_get_contents_002.phpt

15 years agoFixed compilation error
Dmitry Stogov [Wed, 23 Sep 2009 08:33:23 +0000 (08:33 +0000)]
Fixed compilation error

15 years ago- Fixed bug #49531 (CURLOPT_INFILESIZE sometimes causes warning "CURLPROTO_FILE canno...
Felipe Pena [Wed, 23 Sep 2009 02:08:19 +0000 (02:08 +0000)]
- Fixed bug #49531 (CURLOPT_INFILESIZE sometimes causes warning "CURLPROTO_FILE cannot be set ...")

15 years agoFixed compiler warning
Ilia Alshanetsky [Wed, 23 Sep 2009 00:18:32 +0000 (00:18 +0000)]
Fixed compiler warning

15 years ago- Fixed bug #49630 (imap_listscan function missing)
Felipe Pena [Tue, 22 Sep 2009 18:18:57 +0000 (18:18 +0000)]
- Fixed bug #49630 (imap_listscan function missing)
# Missing PHP_FE(), though nowdays it is used through of two aliases. (imap_scan() and imap_scanmailbox())

15 years agomysqlnd supports INIT_COMMAND and so we can add it to PDO_MYSQL @ mysqlnd
Ulf Wendel [Tue, 22 Sep 2009 15:31:35 +0000 (15:31 +0000)]
mysqlnd supports INIT_COMMAND and so we can add it to PDO_MYSQL @ mysqlnd

15 years agoFix handling of BIT fields for non-PS. We need
Andrey Hristov [Tue, 22 Sep 2009 15:07:39 +0000 (15:07 +0000)]
Fix handling of BIT fields for non-PS. We need
macros from mysqlnd to be able to convert a bit
stream to a number. BIT is binary data thus
the result is a string, and not unicode

15 years agoFixed tests which fail from time to time because of race conditions ("echo" command...
Dmitry Stogov [Tue, 22 Sep 2009 14:52:47 +0000 (14:52 +0000)]
Fixed tests which fail from time to time because of race conditions ("echo" command didn't wait for all the data php tried to send and as result php got a SIGPIPE)

15 years agosync with branch, after Ulf's commits
Andrey Hristov [Tue, 22 Sep 2009 14:52:12 +0000 (14:52 +0000)]
sync with branch, after Ulf's commits

15 years agoCheck for the different types and create the
Andrey Hristov [Tue, 22 Sep 2009 14:43:37 +0000 (14:43 +0000)]
Check for the different types and create the
corresponding configuration file, so it can be used
by mysqli, even if mysqlnd is not enabled at all.

15 years agoFix handling of BIT fields in mysqli, when libmysql is used
Andrey Hristov [Tue, 22 Sep 2009 13:58:52 +0000 (13:58 +0000)]
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.

15 years agoMFB: generalize output
Nuno Lopes [Tue, 22 Sep 2009 12:35:35 +0000 (12:35 +0000)]
MFB: generalize output

15 years agospread more svn:ignore love
Nuno Lopes [Tue, 22 Sep 2009 12:14:47 +0000 (12:14 +0000)]
spread more svn:ignore love

15 years agoFixing test
Ulf Wendel [Tue, 22 Sep 2009 11:58:46 +0000 (11:58 +0000)]
Fixing test

15 years agoFixed test (it failed from time to time because of very small timeouts)
Dmitry Stogov [Tue, 22 Sep 2009 10:15:10 +0000 (10:15 +0000)]
Fixed test (it failed from time to time because of very small timeouts)

15 years ago- Move tests in the right location
Jani Taskinen [Tue, 22 Sep 2009 09:41:39 +0000 (09:41 +0000)]
- Move tests in the right location

15 years agoFixing test
Ulf Wendel [Tue, 22 Sep 2009 08:42:44 +0000 (08:42 +0000)]
Fixing test

15 years agoFixed ext/spl/tests/arrayObject_magicMethods2.phpt
Dmitry Stogov [Tue, 22 Sep 2009 07:54:06 +0000 (07:54 +0000)]
Fixed ext/spl/tests/arrayObject_magicMethods2.phpt

15 years agoFixing test. There is nothing we can do about the MySQL Client Library allocate huge...
Ulf Wendel [Tue, 22 Sep 2009 07:11:50 +0000 (07:11 +0000)]
Fixing test. There is nothing we can do about the MySQL Client Library allocate huge 4GB buffers for some SQL types.

15 years agoFixing test. Can't wait to see the new run-tests materialize for detecting skip secti...
Ulf Wendel [Tue, 22 Sep 2009 06:59:04 +0000 (06:59 +0000)]
Fixing test. Can't wait to see the new run-tests materialize for detecting skip section parse errors.

15 years agoFixed build with older version of libcurl
Ilia Alshanetsky [Tue, 22 Sep 2009 01:17:16 +0000 (01:17 +0000)]
Fixed build with older version of libcurl

15 years agoFixing test
Ulf Wendel [Mon, 21 Sep 2009 15:59:22 +0000 (15:59 +0000)]
Fixing test

15 years agoFixing test
Ulf Wendel [Mon, 21 Sep 2009 15:24:47 +0000 (15:24 +0000)]
Fixing test

15 years agoFixed tests (removed irrelevant check which makes test to fail from time to time)
Dmitry Stogov [Mon, 21 Sep 2009 15:23:25 +0000 (15:23 +0000)]
Fixed tests (removed irrelevant check which makes test to fail from time to time)

15 years agoFixed tests ("none" is an alias of "false" and it can't be used as a string value...
Dmitry Stogov [Mon, 21 Sep 2009 14:32:20 +0000 (14:32 +0000)]
Fixed tests ("none" is an alias of "false" and it can't be used as a string value of ini option)

15 years agoMoving test code around to get test failures down without testing less. Users of...
Ulf Wendel [Mon, 21 Sep 2009 14:20:05 +0000 (14:20 +0000)]
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.

15 years agoFixed memleak in tests/lang/engine_assignExecutionOrder_001.phpt
Dmitry Stogov [Mon, 21 Sep 2009 13:01:17 +0000 (13:01 +0000)]
Fixed memleak in tests/lang/engine_assignExecutionOrder_001.phpt

15 years agoFixing test by calling it a known limit. We keept the test failing as a reminder...
Ulf Wendel [Mon, 21 Sep 2009 12:02:30 +0000 (12:02 +0000)]
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.

15 years agoFixing test
Ulf Wendel [Mon, 21 Sep 2009 11:54:15 +0000 (11:54 +0000)]
Fixing test

15 years agoFixed tests
Dmitry Stogov [Mon, 21 Sep 2009 11:38:14 +0000 (11:38 +0000)]
Fixed tests

15 years agoFixed tests
Dmitry Stogov [Mon, 21 Sep 2009 11:30:38 +0000 (11:30 +0000)]
Fixed tests

15 years agoNot nice but neither the MySQL Client Library not mysqlnd are supposed to detect...
Ulf Wendel [Mon, 21 Sep 2009 10:16:44 +0000 (10:16 +0000)]
Not nice but neither the MySQL Client Library not mysqlnd are supposed to detect invalid flags. Therefore: fixing test

15 years agoFixing mysqli_result_references_mysqlnd.php
Ulf Wendel [Mon, 21 Sep 2009 10:06:13 +0000 (10:06 +0000)]
Fixing mysqli_result_references_mysqlnd.php

15 years agoFixing mysqli_get_client_stats.phpt. More testing for MYSQLI_INIT_COMMAND
Ulf Wendel [Mon, 21 Sep 2009 09:35:23 +0000 (09:35 +0000)]
Fixing mysqli_get_client_stats.phpt. More testing for MYSQLI_INIT_COMMAND

15 years agoFixing test: references has to be collected even if the users disables the collection...
Ulf Wendel [Mon, 21 Sep 2009 08:59:00 +0000 (08:59 +0000)]
Fixing test: references has to be collected even if the users disables the collection of statistics. It is needed for memory management.

15 years agoFixing test - the standard test table will not accept NULL values for column id
Ulf Wendel [Mon, 21 Sep 2009 08:36:14 +0000 (08:36 +0000)]
Fixing test - the standard test table will not accept NULL values for column id

15 years ago- fix ACL cache for read check
Pierre Joye [Sat, 19 Sep 2009 20:54:34 +0000 (20:54 +0000)]
- fix ACL cache for read check

15 years agoAnd now use proper colspanning
Hannes Magnusson [Fri, 18 Sep 2009 23:06:21 +0000 (23:06 +0000)]
And now use proper colspanning

15 years agoFix typo in comment (danbrown)
Hannes Magnusson [Fri, 18 Sep 2009 22:26:44 +0000 (22:26 +0000)]
Fix typo in comment (danbrown)

15 years agoThrow some credit around
Hannes Magnusson [Fri, 18 Sep 2009 22:01:58 +0000 (22:01 +0000)]
Throw some credit around

15 years agoFix for bug#48909 Segmentation fault in mysqli_stmt_execute
Andrey Hristov [Fri, 18 Sep 2009 14:32:01 +0000 (14:32 +0000)]
Fix for bug#48909 Segmentation fault in mysqli_stmt_execute

15 years agoFix for bug#48754 mysql_close() crash php when no handle specified
Andrey Hristov [Fri, 18 Sep 2009 10:46:51 +0000 (10:46 +0000)]
Fix for bug#48754 mysql_close() crash php when no handle specified

15 years agoAfix not included by the fix committed by Ulf.
Andrey Hristov [Thu, 17 Sep 2009 15:13:36 +0000 (15:13 +0000)]
Afix not included by the fix committed by Ulf.
pemalloc and then efree - too bad!
Sorry for committing in two passes, my big tree is already patched
with compressed.

15 years agobetter coverage for mysqli_info
Ulf Wendel [Thu, 17 Sep 2009 07:11:25 +0000 (07:11 +0000)]
better coverage for mysqli_info

15 years ago- Fixed bug #49572 (use of C++ style comments causes build failure)
Sriram Natarajan [Thu, 17 Sep 2009 02:45:25 +0000 (02:45 +0000)]
- Fixed bug #49572 (use of C++ style comments causes build failure)

15 years ago- Fixed ZTS build
Felipe Pena [Wed, 16 Sep 2009 18:01:10 +0000 (18:01 +0000)]
- Fixed ZTS build

15 years agoMerge ReflectionMethod::setAccessible() to PHP 5.3.2, approved by Johannes.
Sebastian Bergmann [Wed, 16 Sep 2009 17:24:46 +0000 (17:24 +0000)]
Merge ReflectionMethod::setAccessible() to PHP 5.3.2, approved by Johannes.

15 years agoFix (by Andrey) and test for bug #49442 . Don't use efree() for memory allocated...
Ulf Wendel [Wed, 16 Sep 2009 17:03:44 +0000 (17:03 +0000)]
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.

15 years agoFix and tests for bug #49511 . mysqlnd and the MySQL Client Library (libmysql) use...
Ulf Wendel [Wed, 16 Sep 2009 15:00:54 +0000 (15:00 +0000)]
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.