From: Stanislav Malyshev Date: Wed, 2 Feb 2005 10:36:02 +0000 (+0000) Subject: Fix #31720 Invalid object callbacks not caught in array_walk() (patch from Antony... X-Git-Tag: RELEASE_0_2~107 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3925337a55943c7f067dc1a467f95a3c85acf20d;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 7f29c65487..8af362d422 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -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) {