com php-src: Fixed interned strings support: ext/opcache/ZendAccelerator.c
| From: | Dmitry Stogov | Date: | Mon, 31 Mar 2014 20:50:25 +0000 |
| Subject: | com php-src: Fixed interned strings support: ext/opcache/ZendAccelerator.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77514@lists.php.net to get a copy of this message | ||
Commit: 3fc8449e1edd216706058a697f10133b804300fd
Author: Dmitry Stogov <dmitry@zend.com> Tue, 1 Apr 2014 00:50:25 +0400
Parents: fd4d11e05319f43296f5f19fd4df9f364a7eb451
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3fc8449e1edd216706058a697f10133b804300fd
Log:
Fixed interned strings support
Changed paths:
M ext/opcache/ZendAccelerator.c
Diff:
diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c
index 44e1975..1bf672e 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;