From: Dmitry Stogov Date: Mon, 31 Mar 2014 20:50:25 +0000 (+0400) Subject: Fixed interned strings support X-Git-Tag: POST_PHPNG_MERGE~412^2~198 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3fc8449e1edd216706058a697f10133b804300fd;p=php Fixed interned strings support --- diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index 44e1975414..1bf672e3df 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -351,6 +351,7 @@ zend_string *accel_new_interned_string(zend_string *str TSRMLS_DC) p = ZCSG(interned_strings).arData + idx; p->key = (zend_string*) ZCSG(interned_strings_top); ZCSG(interned_strings_top) += ZEND_MM_ALIGNED_SIZE(sizeof(zend_string) + str->len); + p->h = h; p->key->gc.refcount = 1; p->key->gc.u.v.type = IS_STRING; p->key->gc.u.v.flags = IS_STR_INTERNED | IS_STR_PERMANENT;