summaryrefslogtreecommitdiff
path: root/ext/mysqlnd
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2017-10-19 00:02:56 +0300
committerDmitry Stogov <dmitry@zend.com>2017-10-19 00:02:56 +0300
commit272f5a1716155f21ccce8dc625aeeabbcbe6bdaa (patch)
tree766582a23c040de9c61aca0a2a6a70e1dd2e2e4f /ext/mysqlnd
parentea915adb483cc274a6f2a273148fabe93e5a8720 (diff)
downloadphp-git-272f5a1716155f21ccce8dc625aeeabbcbe6bdaa.tar.gz
Extend zend_string API to avoid reallocation in zend_string_init_interned()
Diffstat (limited to 'ext/mysqlnd')
-rw-r--r--ext/mysqlnd/mysqlnd_wireprotocol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd_wireprotocol.c b/ext/mysqlnd/mysqlnd_wireprotocol.c
index b948b8b81c..ed6931ef41 100644
--- a/ext/mysqlnd/mysqlnd_wireprotocol.c
+++ b/ext/mysqlnd/mysqlnd_wireprotocol.c
@@ -1375,7 +1375,7 @@ php_mysqlnd_rset_field_read(void * _packet)
meta->root_len = total_len;
if (meta->name != mysqlnd_empty_string) {
- meta->sname = zend_new_interned_string(zend_string_init(meta->name, meta->name_length, packet->persistent_alloc));
+ meta->sname = zend_string_init_interned(meta->name, meta->name_length, packet->persistent_alloc);
} else {
meta->sname = ZSTR_EMPTY_ALLOC();
}