]> granicus.if.org Git - php/commitdiff
- Revert change, no check is needed there
authorFelipe Pena <felipensp@gmail.com>
Mon, 12 Oct 2015 12:07:28 +0000 (09:07 -0300)
committerFelipe Pena <felipensp@gmail.com>
Mon, 12 Oct 2015 12:07:28 +0000 (09:07 -0300)
Zend/zend_builtin_functions.c

index 347d1691800ca9d4b4203cf67d4c04f6d72114a0..8ffdcaa0bc4548db041021e9c753b7c44a477573 100644 (file)
@@ -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;
        }