com php-src: - Revert change, no check is needed there: Zend/zend_builtin_functions.c
| From: | Felipe Pena | Date: | Mon, 12 Oct 2015 12:07:28 +0000 |
| Subject: | com php-src: - Revert change, no check is needed there: Zend/zend_builtin_functions.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-89374@lists.php.net to get a copy of this message | ||
Commit: cf092b1b1649ae03b0039e4d745659e11450aee6
Author: Felipe Pena <felipensp@gmail.com> Mon, 12 Oct 2015 09:07:28 -0300
Parents: 2dd32fe489ebee719bd5eaff497689e1c3a88e95
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=cf092b1b1649ae03b0039e4d745659e11450aee6
Log:
- Revert change, no check is needed there
Changed paths:
M Zend/zend_builtin_functions.c
Diff:
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions..c
index 347d169..8ffdcaa 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;
}