From: Dmitry Stogov Date: Mon, 15 Apr 2019 21:08:16 +0000 (+0300) Subject: execute_data->return_value is not used for internal functions X-Git-Tag: php-7.4.0alpha1~493 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f7bf35e169556f441e5840909261f1677fff640;p=php execute_data->return_value is not used for internal functions --- diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 794e6863dd..4c4dbc8891 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -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 */