]> granicus.if.org Git - php/commitdiff
Avoid endless loop
authorHannes Magnusson <bjori@php.net>
Mon, 23 Jul 2007 01:13:43 +0000 (01:13 +0000)
committerHannes Magnusson <bjori@php.net>
Mon, 23 Jul 2007 01:13:43 +0000 (01:13 +0000)
ext/reflection/php_reflection.c

index 499a43d52d7b9cf0bc117fb5e9a6fde30084d747..e4f7407b1dc055a19183a6ce19c269a474259059 100644 (file)
@@ -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;
                        }