@@ -7617,12 +7617,11 @@ void zend_compile_short_circuiting(znode *result, zend_ast *ast) /* {{{ */
7617
7617
7618
7618
if (left_node .op_type == IS_TMP_VAR ) {
7619
7619
SET_NODE (opline_jmpz -> result , & left_node );
7620
+ GET_NODE (result , opline_jmpz -> result );
7620
7621
} else {
7621
- opline_jmpz -> result .var = get_temporary_variable ();
7622
- opline_jmpz -> result_type = IS_TMP_VAR ;
7622
+ zend_make_tmp_result (result , opline_jmpz );
7623
7623
}
7624
7624
7625
- GET_NODE (result , opline_jmpz -> result );
7626
7625
zend_compile_expr (& right_node , right_ast );
7627
7626
7628
7627
opline_bool = zend_emit_op (NULL , ZEND_BOOL , & right_node , NULL );
@@ -8442,28 +8441,23 @@ static void zend_compile_encaps_list(znode *result, zend_ast *ast) /* {{{ */
8442
8441
opline -> extended_value = IS_STRING ;
8443
8442
opline -> op1_type = opline -> op2_type ;
8444
8443
opline -> op1 = opline -> op2 ;
8445
- opline -> result_type = IS_TMP_VAR ;
8446
- opline -> result .var = get_temporary_variable ();
8447
8444
SET_UNUSED (opline -> op2 );
8448
- GET_NODE (result , opline -> result );
8445
+ zend_make_tmp_result (result , opline );
8449
8446
}
8450
8447
} else if (j == 2 ) {
8451
8448
opline -> opcode = ZEND_FAST_CONCAT ;
8452
8449
opline -> extended_value = 0 ;
8453
8450
opline -> op1_type = init_opline -> op2_type ;
8454
8451
opline -> op1 = init_opline -> op2 ;
8455
- opline -> result_type = IS_TMP_VAR ;
8456
- opline -> result .var = get_temporary_variable ();
8452
+ zend_make_tmp_result (result , opline );
8457
8453
MAKE_NOP (init_opline );
8458
- GET_NODE (result , opline -> result );
8459
8454
} else {
8460
8455
uint32_t var ;
8461
8456
8462
8457
init_opline -> extended_value = j ;
8463
8458
opline -> opcode = ZEND_ROPE_END ;
8464
- opline -> result . var = get_temporary_variable ( );
8459
+ zend_make_tmp_result ( result , opline );
8465
8460
var = opline -> op1 .var = get_temporary_variable ();
8466
- GET_NODE (result , opline -> result );
8467
8461
8468
8462
/* Allocates the necessary number of zval slots to keep the rope */
8469
8463
i = ((j * sizeof (zend_string * )) + (sizeof (zval ) - 1 )) / sizeof (zval );
0 commit comments