From aa9bfc06e768f9b9ededc2a4b0448dd582ffbc55 Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Wed, 2 Feb 2005 10:25:50 +0000 Subject: [PATCH] Fix #31720 Invalid object callbacks not caught in array_walk() (patch from Antony Dovgal) --- Zend/zend_execute_API.c | 3 +++ 1 file changed, 3 insertions(+) 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) { -- 2.50.1