summaryrefslogtreecommitdiff
path: root/ext/mysqli
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2008-06-24 11:01:38 +0000
committerAndrey Hristov <andrey@php.net>2008-06-24 11:01:38 +0000
commite0f45cf7ae05e7d74808623607dda65ff7dd5614 (patch)
tree3995f79a760aa357488722c27125fb90165b4d41 /ext/mysqli
parent048736a907e3b6808786e1906235d80a2411ab15 (diff)
downloadphp-git-e0f45cf7ae05e7d74808623607dda65ff7dd5614.tar.gz
Fix possible bug with persistent connections and mysqlnd
Diffstat (limited to 'ext/mysqli')
-rw-r--r--ext/mysqli/mysqli_nonapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqli/mysqli_nonapi.c b/ext/mysqli/mysqli_nonapi.c
index 27e6b4ebd4..8c67e30799 100644
--- a/ext/mysqli/mysqli_nonapi.c
+++ b/ext/mysqli/mysqli_nonapi.c
@@ -170,7 +170,7 @@ void mysqli_common_connect(INTERNAL_FUNCTION_PARAMETERS, zend_bool is_real_conne
if (!mysql_ping(mysql->mysql)) {
#endif
#ifdef MYSQLI_USE_MYSQLND
- mysqlnd_restart_psession(mysql->mysql);
+ mysqlnd_restart_psession(mysql->mysql, MyG(mysqlnd_thd_zval_cache));
#endif
MyG(num_active_persistent)++;
goto end;