Skip to content

Commit

Permalink
Use persistent heap only for persistent connections.
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Jun 21, 2017
1 parent 687123e commit c61cea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/mysqlnd/mysqlnd_connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c61cea7

Please sign in to comment.