From e6e823c8449403d37a82beec729d9aa888096c15 Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Mon, 23 Jul 2007 01:13:43 +0000 Subject: [PATCH] Avoid endless loop --- ext/reflection/php_reflection.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 499a43d52d..e4f7407b1d 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -978,6 +978,7 @@ static void _extension_string(string *str, zend_module_entry *module, char *inde while (func->fname) { if (zend_hash_find(EG(function_table), func->fname, strlen(func->fname) + 1, (void**) &fptr) == FAILURE) { zend_error(E_WARNING, "Internal error: Cannot find extension function %s in global function table", func->fname); + func++; continue; } @@ -4214,6 +4215,7 @@ ZEND_METHOD(reflection_extension, getFunctions) while (func->fname) { if (zend_hash_find(EG(function_table), func->fname, strlen(func->fname) + 1, (void**) &fptr) == FAILURE) { zend_error(E_WARNING, "Internal error: Cannot find extension function %s in global function table", func->fname); + func++; continue; } -- 2.50.1