@@ -406,11 +406,11 @@ static zend_always_inline zval *_get_zval_ptr_cv_BP_VAR_W(uint32_t var EXECUTE_D
406
406
static zend_always_inline zval * _get_zval_ptr (int op_type , znode_op node , zend_free_op * should_free , int type EXECUTE_DATA_DC OPLINE_DC )
407
407
{
408
408
if (op_type & (IS_TMP_VAR |IS_VAR )) {
409
- if (op_type == IS_TMP_VAR ) {
410
- return _get_zval_ptr_tmp (node .var , should_free EXECUTE_DATA_CC );
411
- } else {
412
- ZEND_ASSERT (op_type == IS_VAR );
409
+ if (!ZEND_DEBUG || op_type == IS_VAR ) {
413
410
return _get_zval_ptr_var (node .var , should_free EXECUTE_DATA_CC );
411
+ } else {
412
+ ZEND_ASSERT (op_type == IS_TMP_VAR );
413
+ return _get_zval_ptr_tmp (node .var , should_free EXECUTE_DATA_CC );
414
414
}
415
415
} else {
416
416
* should_free = NULL ;
@@ -427,11 +427,11 @@ static zend_always_inline zval *_get_zval_ptr(int op_type, znode_op node, zend_f
427
427
static zend_always_inline zval * _get_op_data_zval_ptr_r (int op_type , znode_op node , zend_free_op * should_free EXECUTE_DATA_DC OPLINE_DC )
428
428
{
429
429
if (op_type & (IS_TMP_VAR |IS_VAR )) {
430
- if (op_type == IS_TMP_VAR ) {
431
- return _get_zval_ptr_tmp (node .var , should_free EXECUTE_DATA_CC );
432
- } else {
433
- ZEND_ASSERT (op_type == IS_VAR );
430
+ if (!ZEND_DEBUG || op_type == IS_VAR ) {
434
431
return _get_zval_ptr_var (node .var , should_free EXECUTE_DATA_CC );
432
+ } else {
433
+ ZEND_ASSERT (op_type == IS_TMP_VAR );
434
+ return _get_zval_ptr_tmp (node .var , should_free EXECUTE_DATA_CC );
435
435
}
436
436
} else {
437
437
* should_free = NULL ;
@@ -490,11 +490,11 @@ static zend_always_inline ZEND_ATTRIBUTE_UNUSED zval *_get_op_data_zval_ptr_dere
490
490
static zend_always_inline zval * _get_zval_ptr_undef (int op_type , znode_op node , zend_free_op * should_free , int type EXECUTE_DATA_DC OPLINE_DC )
491
491
{
492
492
if (op_type & (IS_TMP_VAR |IS_VAR )) {
493
- if (op_type == IS_TMP_VAR ) {
494
- return _get_zval_ptr_tmp (node .var , should_free EXECUTE_DATA_CC );
495
- } else {
496
- ZEND_ASSERT (op_type == IS_VAR );
493
+ if (!ZEND_DEBUG || op_type == IS_VAR ) {
497
494
return _get_zval_ptr_var (node .var , should_free EXECUTE_DATA_CC );
495
+ } else {
496
+ ZEND_ASSERT (op_type == IS_TMP_VAR );
497
+ return _get_zval_ptr_tmp (node .var , should_free EXECUTE_DATA_CC );
498
498
}
499
499
} else {
500
500
* should_free = NULL ;
0 commit comments