]> granicus.if.org Git - php/commitdiff
Don't initialize return value before calling user functions
authorDmitry Stogov <dmitry@zend.com>
Thu, 18 Apr 2019 00:00:20 +0000 (03:00 +0300)
committerDmitry Stogov <dmitry@zend.com>
Thu, 18 Apr 2019 00:00:20 +0000 (03:00 +0300)
ext/opcache/jit/zend_jit_x86.dasc

index 72fdf17526e285d69b2b16c60ab16b6bbf1914cd..cab7793462e5a8148951ceb43a6100c9e7ed347b 100644 (file)
@@ -7474,8 +7474,6 @@ static int zend_jit_do_fcall(dasm_State **Dst, const zend_op *opline, zend_op_ar
                |       mov aword EX:RX->call, 0
 
                if (RETURN_VALUE_USED(opline)) {
-                       |       // ZVAL_NULL(EX_VAR(opline->result.var));
-                       |       SET_ZVAL_TYPE_INFO res_addr, IS_NULL
                        |       // EX(return_value) = EX_VAR(opline->result.var);
                        |       LOAD_ZVAL_ADDR r2, res_addr
                        |       mov aword EX:RX->return_value, r2