MFB: Avoid endless loop

This commit is contained in:
Hannes Magnusson 2007-07-23 01:21:04 +00:00
parent 993f77ef9d
commit 8bff918046

View File

@ -996,6 +996,7 @@ static void _extension_string(string *str, zend_module_entry *module, char *inde
while (func->fname) {
if (zend_ascii_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;
}
@ -4327,6 +4328,7 @@ ZEND_METHOD(reflection_extension, getFunctions)
while (func->fname) {
if (zend_ascii_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;
}