]> 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:25:50 +0000 (10:25 +0000)
committerStanislav Malyshev <stas@php.net>
Wed, 2 Feb 2005 10:25:50 +0000 (10:25 +0000)
Zend/zend_execute_API.c

index 3a3be5e0b1f5ef0272ddf36a73a55beb8cdd6a1d..b6a78844d511f9da5f3fddee3f64370c26918d40 100644 (file)
@@ -669,6 +669,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) {