]> granicus.if.org Git - php/commitdiff
execute_data->return_value is not used for internal functions
authorDmitry Stogov <dmitry@zend.com>
Mon, 15 Apr 2019 21:08:16 +0000 (00:08 +0300)
committerDmitry Stogov <dmitry@zend.com>
Mon, 15 Apr 2019 21:08:16 +0000 (00:08 +0300)
Zend/zend_execute_API.c

index 794e6863dd73eda0aab9106fa74aa6a4929ab191..4c4dbc8891a2bd60b76f3ec4710db6313527472d 100644 (file)
@@ -822,7 +822,6 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache) /
                int call_via_handler = (func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) != 0;
                ZVAL_NULL(fci->retval);
                call->prev_execute_data = EG(current_execute_data);
-               call->return_value = NULL; /* this is not a constructor call */
                EG(current_execute_data) = call;
                if (EXPECTED(zend_execute_internal == NULL)) {
                        /* saves one function call if zend_execute_internal is not used */