From 1dd224dd12d16984879337bb15431a2e1d3288b5 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 16 Oct 2017 19:20:16 +0300 Subject: Reuse interned strings from opcache SHM, if possible. --- ext/mysqlnd/mysqlnd_wireprotocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/mysqlnd/mysqlnd_wireprotocol.c') 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(); } -- cgit v1.2.1