com php-src: Use hash_str directly: Zend/zend_builtin _functions.c

From: Date: Thu, 02 Jul 2015 04:31:26 +0000
Subject: com php-src: Use hash_str directly: Zend/zend_builtin _functions.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-87686@lists.php.net to get a copy of this message
Commit: 3422fb57c88cdb82868b845e0690569c376f080c Author: Xinchen Hui <laruence@php.net> Thu, 2 Jul 2015 12:31:26 +0800 Parents: ba91bc36cdcde0ed6f0184df793ce8f332366473 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=3422fb57c88cdb82868b845e0690569c376f080c Log: Use hash_str directly Changed paths: M Zend/zend_builtin_functions.c Diff: diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index fe371ee..1a5ba2e 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; }

« previous php.cvs (#87686) next »