diff options
Diffstat (limited to 'Zend/zend_builtin_functions.c')
| -rw-r--r-- | Zend/zend_builtin_functions.c | 7 | 
1 files changed, 4 insertions, 3 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index fe371ee61a..1a5ba2e5dd 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -2689,11 +2689,12 @@ ZEND_FUNCTION(get_extension_funcs)  	}  	if (strncasecmp(ZSTR_VAL(extension_name), "zend", sizeof("zend"))) {  		lcname = zend_string_tolower(extension_name); +		module = zend_hash_find_ptr(&module_registry, lcname); +		zend_string_release(lcname);  	} else { -		lcname = zend_string_init("core", sizeof("core")-1, 0); +		module = zend_hash_str_find_ptr(&module_registry, "core", sizeof("core") - 1);  	} -	module = zend_hash_find_ptr(&module_registry, lcname); -	zend_string_release(lcname); +  	if (!module) {  		RETURN_FALSE;  	}  | 
