com php-src: Use persistent heap only for persistent connections.: ext/mysqlnd/mysqlnd_connection.c

From: Date: Wed, 21 Jun 2017 08:25:30 +0000
Subject: com php-src: Use persistent heap only for persistent connections.: ext/mysqlnd/mysqlnd_connection.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-98149@lists.php.net to get a copy of this message
Commit: c61cea7135f882b9cddef4a7e1a6ce8d51fedd61 Author: Dmitry Stogov <dmitry@zend.com> Wed, 21 Jun 2017 11:25:30 +0300 Parents: 687123ebf254415dd1a9c4ddd8d63ea4df0e2aa8 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c61cea7135f882b9cddef4a7e1a6ce8d51fedd61 Log: Use persistent heap only for persistent connections. Changed paths: M ext/mysqlnd/mysqlnd_connection.c Diff: diff --git a/ext/mysqlnd/mysqlnd_connection.c b/ext/mysqlnd/mysqlnd_connection.c index 8089377..e836ef1 100644 --- a/ext/mysqlnd/mysqlnd_connection.c +++ b/ext/mysqlnd/mysqlnd_connection.c @@ -1859,7 +1859,7 @@ MYSQLND_METHOD(mysqlnd_conn_data, set_client_option_2d)(MYSQLND_CONN_DATA * cons DBG_INF_FMT("Adding [%s][%s]", key, value); { zval attrz; - ZVAL_NEW_STR(&attrz, zend_string_init(value, strlen(value), 1)); + ZVAL_NEW_STR(&attrz, zend_string_init(value, strlen(value), conn->persistent)); zend_hash_str_update(conn->options->connect_attr, key, strlen(key), &attrz); } break;

« previous php.cvs (#98149) next »