]> granicus.if.org Git - php/commitdiff
Fixed interned strings support
authorDmitry Stogov <dmitry@zend.com>
Mon, 31 Mar 2014 20:50:25 +0000 (00:50 +0400)
committerDmitry Stogov <dmitry@zend.com>
Mon, 31 Mar 2014 20:50:25 +0000 (00:50 +0400)
ext/opcache/ZendAccelerator.c

index 44e1975414c7a92b0da1ce01eae92f43aca5eded..1bf672e3df515ae691e8520cbb30fbea112fd1cc 100644 (file)
@@ -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;