From: Xinchen Hui Date: Mon, 18 Apr 2016 11:13:54 +0000 (+0800) Subject: combine conditions X-Git-Tag: php-7.0.7RC1~95 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa9f8e695c1babf4be4aa27328f02608fbcf9033;p=php combine conditions --- diff --git a/Zend/zend_vm_def.h b/Zend/zend_vm_def.h index 8d01d99ee9..fd995475fb 100644 --- a/Zend/zend_vm_def.h +++ b/Zend/zend_vm_def.h @@ -4422,7 +4422,7 @@ ZEND_VM_C_LABEL(send_again): zend_vm_stack_extend_call_frame(&EX(call), arg_num - 1, zend_hash_num_elements(ht)); - if (OP1_TYPE != IS_CONST && OP1_TYPE != IS_TMP_VAR && Z_REFCOUNT_P(args) > 1) { + if ((OP1_TYPE & (IS_VAR|IS_CV)) && Z_REFCOUNT_P(args) > 1) { uint32_t i; int separate = 0; diff --git a/Zend/zend_vm_execute.h b/Zend/zend_vm_execute.h index 592681cd98..c057695586 100644 --- a/Zend/zend_vm_execute.h +++ b/Zend/zend_vm_execute.h @@ -954,7 +954,7 @@ send_again: zend_vm_stack_extend_call_frame(&EX(call), arg_num - 1, zend_hash_num_elements(ht)); - if (opline->op1_type != IS_CONST && opline->op1_type != IS_TMP_VAR && Z_REFCOUNT_P(args) > 1) { + if ((opline->op1_type & (IS_VAR|IS_CV)) && Z_REFCOUNT_P(args) > 1) { uint32_t i; int separate = 0;