summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_wireprotocol.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2017-10-16 19:20:16 +0300
committerDmitry Stogov <dmitry@zend.com>2017-10-16 19:20:16 +0300
commit1dd224dd12d16984879337bb15431a2e1d3288b5 (patch)
treee338ecfc16c4bed76026e6ecb93f7bb4730bcfbf /ext/mysqlnd/mysqlnd_wireprotocol.c
parenta87484aa22334b668270d0fe271a407472c1cc42 (diff)
downloadphp-git-1dd224dd12d16984879337bb15431a2e1d3288b5.tar.gz
Reuse interned strings from opcache SHM, if possible.
Diffstat (limited to 'ext/mysqlnd/mysqlnd_wireprotocol.c')
-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 9d951746f8..b948b8b81c 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_string_init(meta->name, meta->name_length, packet->persistent_alloc);
+ meta->sname = zend_new_interned_string(zend_string_init(meta->name, meta->name_length, packet->persistent_alloc));
} else {
meta->sname = ZSTR_EMPTY_ALLOC();
}