From: Stanislav Malyshev Date: Wed, 2 Feb 2005 10:25:50 +0000 (+0000) Subject: Fix #31720 Invalid object callbacks not caught in array_walk() (patch from Antony... X-Git-Tag: php-5.0.4RC1~211 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa9bfc06e768f9b9ededc2a4b0448dd582ffbc55;p=php Fix #31720 Invalid object callbacks not caught in array_walk() (patch from Antony Dovgal) --- diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 3a3be5e0b1..b6a78844d5 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -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) {