From cf092b1b1649ae03b0039e4d745659e11450aee6 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Mon, 12 Oct 2015 09:07:28 -0300 Subject: [PATCH] - Revert change, no check is needed there --- Zend/zend_builtin_functions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c index 347d169180..8ffdcaa0bc 100644 --- a/Zend/zend_builtin_functions.c +++ b/Zend/zend_builtin_functions.c @@ -487,7 +487,7 @@ ZEND_FUNCTION(func_get_args) uint32_t i, n; zend_execute_data *ex = EX(prev_execute_data); - if (!ex || ZEND_CALL_INFO(ex) & ZEND_CALL_CODE) { + if (ZEND_CALL_INFO(ex) & ZEND_CALL_CODE) { zend_error(E_WARNING, "func_get_args(): Called from the global scope - no function context"); RETURN_FALSE; } -- 2.40.0