From: Dmitry Stogov Date: Wed, 21 Jun 2017 08:25:30 +0000 (+0300) Subject: Use persistent heap only for persistent connections. X-Git-Tag: php-7.2.0alpha3~65 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c61cea7135f882b9cddef4a7e1a6ce8d51fedd61;p=php Use persistent heap only for persistent connections. --- diff --git a/ext/mysqlnd/mysqlnd_connection.c b/ext/mysqlnd/mysqlnd_connection.c index 8089377e6c..e836ef1238 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;