Skip to content

Commit c61cea7

Browse files
committed
Use persistent heap only for persistent connections.
1 parent 687123e commit c61cea7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mysqlnd/mysqlnd_connection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1859,7 +1859,7 @@ MYSQLND_METHOD(mysqlnd_conn_data, set_client_option_2d)(MYSQLND_CONN_DATA * cons
18591859
DBG_INF_FMT("Adding [%s][%s]", key, value);
18601860
{
18611861
zval attrz;
1862-
ZVAL_NEW_STR(&attrz, zend_string_init(value, strlen(value), 1));
1862+
ZVAL_NEW_STR(&attrz, zend_string_init(value, strlen(value), conn->persistent));
18631863
zend_hash_str_update(conn->options->connect_attr, key, strlen(key), &attrz);
18641864
}
18651865
break;

0 commit comments

Comments
 (0)