From: Hannes Magnusson Date: Mon, 23 Jul 2007 01:13:43 +0000 (+0000) Subject: Avoid endless loop X-Git-Tag: php-5.2.4RC1~83 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6e823c8449403d37a82beec729d9aa888096c15;p=php Avoid endless loop --- 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; }