diff options
| author | Nikita Popov <nikic@php.net> | 2014-05-05 21:16:49 +0200 |
|---|---|---|
| committer | Nikita Popov <nikic@php.net> | 2014-05-05 22:21:57 +0200 |
| commit | 211d32c81429730e2692c65577d021616a525726 (patch) | |
| tree | c9319c39d3960bca166d702d872430f5088ad8fc /Zend/zend_string.c | |
| parent | b9438a1ec7a2548e05b938f8034f74f9c7d490f0 (diff) | |
| download | php-git-211d32c81429730e2692c65577d021616a525726.tar.gz | |
Initialize CG(one_time_string) in ZTS as well
Diffstat (limited to 'Zend/zend_string.c')
| -rw-r--r-- | Zend/zend_string.c | 6 |
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; |
