summaryrefslogtreecommitdiff
path: root/Zend/zend_string.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2015-04-21 23:26:34 +0300
committerDmitry Stogov <dmitry@zend.com>2015-04-21 23:26:34 +0300
commita0c07c90f248ffdf11ee8bdf9309107f5776bf54 (patch)
tree769babb39a93dcfadd803c3027312fb8d13ae9a2 /Zend/zend_string.c
parent76b1d755fc7778f80455b1bfb8ccc009083974c1 (diff)
downloadphp-git-a0c07c90f248ffdf11ee8bdf9309107f5776bf54.tar.gz
Fixed zend_string related inconsistencies
Diffstat (limited to 'Zend/zend_string.c')
-rw-r--r--Zend/zend_string.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend_string.c b/Zend/zend_string.c
index f20304570a..e8685a42b2 100644
--- a/Zend/zend_string.c
+++ b/Zend/zend_string.c
@@ -53,6 +53,7 @@ void zend_interned_strings_init(void)
CG(interned_strings).nTableMask = -CG(interned_strings).nTableSize;
HT_SET_DATA_ADDR(&CG(interned_strings), pemalloc(HT_SIZE(&CG(interned_strings)), 1));
HT_HASH_RESET(&CG(interned_strings));
+ CG(interned_strings).u.flags |= HASH_FLAG_INITIALIZED;
/* interned empty string */
str = zend_string_alloc(sizeof("")-1, 1);