From 7f67513ca3c71c0d84a272d1572101ef45203b30 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 25 Jun 2018 19:53:58 +0300 Subject: Lazy function copying from op_cache SHM into process memory --- ext/reflection/php_reflection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/reflection/php_reflection.c') 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); } -- cgit v1.2.1