From dc96140721001e895ab18c128651543bd59f7efa Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Mon, 3 Mar 2014 17:06:04 +0800 Subject: [PATCH] Fixed typo in get_extension_funcs --- Zend/zend_builtin_functions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index b32de1856f..aac29ce260 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -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); -- 2.40.0