diff options
author | Anatol Belski <ab@php.net> | 2017-03-04 10:39:13 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2017-03-04 10:39:13 +0100 |
commit | c6982995504b6e21e8a5ade29cfb16a55196dc43 (patch) | |
tree | a196886e83d43fa9ece21e127edde10e3ab57c3e /Zend/zend_execute_API.c | |
parent | a07272e5b63b404ff7070637137e81634a886bd8 (diff) | |
download | php-git-c6982995504b6e21e8a5ade29cfb16a55196dc43.tar.gz |
Interned strings unification for TS/NTS
Hereby, interned strings are supported in thread safe PHP. The patch
implements two types of interned strings
- interning per process, strings are not freed till process end
- interning per request, strings are freed at request end
There is no runtime interning.
With Opcache, all the permanent iterned strings are copied into SHM on
startup, additional copying into SHM might happen on demand.
Diffstat (limited to 'Zend/zend_execute_API.c')
-rw-r--r-- | Zend/zend_execute_API.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 7747fa4e58..07eb7a8ef3 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -975,7 +975,7 @@ ZEND_API zend_class_entry *zend_lookup_class_ex(zend_string *name, const zval *k } if (!EG(autoload_func)) { - zend_function *func = zend_hash_find_ptr(EG(function_table), CG(known_strings)[ZEND_STR_MAGIC_AUTOLOAD]); + zend_function *func = zend_hash_find_ptr(EG(function_table), ZSTR_KNOWN(ZEND_STR_MAGIC_AUTOLOAD)); if (func) { EG(autoload_func) = func; } else { |