]> granicus.if.org Git - php/commitdiff
Fixed typo in get_extension_funcs
authorXinchen Hui <laruence@gmail.com>
Mon, 3 Mar 2014 09:06:04 +0000 (17:06 +0800)
committerXinchen Hui <laruence@gmail.com>
Mon, 3 Mar 2014 09:06:04 +0000 (17:06 +0800)
Zend/zend_builtin_functions.c

index b32de1856fc55d07ff45e24feed4c121ba716b67..aac29ce26017c3d2748484f2bf6f825428039b88 100644 (file)
@@ -2406,8 +2406,8 @@ ZEND_FUNCTION(get_extension_funcs)
        } else {
                array = 0;
        }
-       while ((zif = zend_hash_get_current_data_ptr_ex(CG(function_table), &iterator)) == SUCCESS) {
-               if (zif->common.type==ZEND_INTERNAL_FUNCTION
+       while ((zif = zend_hash_get_current_data_ptr_ex(CG(function_table), &iterator)) != NULL) {
+               if (zif->common.type == ZEND_INTERNAL_FUNCTION
                        && zif->internal_function.module == module) {
                        if (!array) {
                                array_init(return_value);