diff options
author | Dmitry Stogov <dmitry@zend.com> | 2018-06-25 19:53:58 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2018-06-25 19:53:58 +0300 |
commit | 7f67513ca3c71c0d84a272d1572101ef45203b30 (patch) | |
tree | 190db98954e4fdb1b8b9ae3591783dcbbb73b6c8 /ext/reflection/php_reflection.c | |
parent | 30f79977621051d002d6b153bf6ab1525c2a028c (diff) | |
download | php-git-7f67513ca3c71c0d84a272d1572101ef45203b30.tar.gz |
Lazy function copying from op_cache SHM into process memory
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 77b601d529..37c674718b 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -1559,11 +1559,11 @@ ZEND_METHOD(reflection_function, __construct) /* Ignore leading "\" */ ZSTR_ALLOCA_ALLOC(lcname, ZSTR_LEN(fname) - 1, use_heap); zend_str_tolower_copy(ZSTR_VAL(lcname), ZSTR_VAL(fname) + 1, ZSTR_LEN(fname) - 1); - fptr = zend_hash_find_ptr(EG(function_table), lcname); + fptr = zend_fetch_function(lcname); ZSTR_ALLOCA_FREE(lcname, use_heap); } else { lcname = zend_string_tolower(fname); - fptr = zend_hash_find_ptr(EG(function_table), lcname); + fptr = zend_fetch_function(lcname); zend_string_release(lcname); } |