summaryrefslogtreecommitdiff
path: root/Zend/zend_string.c
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_string.c')
-rw-r--r--Zend/zend_string.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/zend_string.c b/Zend/zend_string.c
index 80571ec390..360ff2966e 100644
--- a/Zend/zend_string.c
+++ b/Zend/zend_string.c
@@ -57,9 +57,6 @@ void zend_interned_strings_init(TSRMLS_D)
str = STR_ALLOC(sizeof("")-1, 1);
str->val[0] = '\000';
CG(empty_string) = zend_new_interned_string_int(str TSRMLS_CC);
-
- /* one char strings (the actual interned strings are going to be created by ext/opcache) */
- memset(CG(one_char_string), 0, sizeof(CG(one_char_string)));
#else
str = STR_ALLOC(sizeof("")-1, 1);
str->val[0] = '\000';
@@ -67,6 +64,9 @@ void zend_interned_strings_init(TSRMLS_D)
CG(empty_string) = str;
#endif
+ /* one char strings (the actual interned strings are going to be created by ext/opcache) */
+ memset(CG(one_char_string), 0, sizeof(CG(one_char_string)));
+
zend_new_interned_string = zend_new_interned_string_int;
zend_interned_strings_snapshot = zend_interned_strings_snapshot_int;
zend_interned_strings_restore = zend_interned_strings_restore_int;