From: Felipe Pena Date: Mon, 12 Oct 2015 12:07:28 +0000 (-0300) Subject: - Revert change, no check is needed there X-Git-Tag: php-7.1.0alpha1~980 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf092b1b1649ae03b0039e4d745659e11450aee6;p=php - Revert change, no check is needed there --- 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; }