mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-26 10:25:41 +00:00
Fixed interned strings support
This commit is contained in:
1 parent
fd4d11e053
commit
3fc8449e1e
1 file changed
+1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user