]> granicus.if.org Git - php/commitdiff
Fix #31720 Invalid object callbacks not caught in array_walk() (patch from Antony...
authorStanislav Malyshev <stas@php.net>
Wed, 2 Feb 2005 10:36:02 +0000 (10:36 +0000)
committerStanislav Malyshev <stas@php.net>
Wed, 2 Feb 2005 10:36:02 +0000 (10:36 +0000)
Zend/zend_execute_API.c

index 7f29c6548783c4a6088a004e9b6f88f6e8bb3033..8af362d422b10719b307f288a512ef7140b25ffa 100644 (file)
@@ -672,6 +672,9 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS
 
                                fci->function_table = &(*ce)->function_table;
                                calling_scope = *ce;
+                       } else {
+                               zend_error(E_NOTICE, "Non-callable array passed to zend_call_function()");
+                               return FAILURE;
                        }
 
                        if (fci->function_table == NULL) {