com php-src: combine conditions: Zend/zend_vm_def.h Zen d/zend_vm_execute.h
| From: | Xinchen Hui | Date: | Mon, 18 Apr 2016 11:13:54 +0000 |
| Subject: | com php-src: combine conditions: Zend/zend_vm_def.h Zen d/zend_vm_execute.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91775@lists.php.net to get a copy of this message | ||
Commit: aa9f8e695c1babf4be4aa27328f02608fbcf9033
Author: Xinchen Hui <laruence@gmail.com> Mon, 18 Apr 2016 19:13:54 +0800
Parents: b08bde185d93dbd35d4dbd3b3ba851c5c1c5cf3c
Branches: PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=aa9f8e695c1babf4be4aa27328f02608fbcf9033
Log:
combine conditions
Changed paths:
M Zend/zend_vm_def.h
M Zend/zend_vm_execute.h
Diff:
diff --git a/Zend/zend_vm_def.h b/Zend/zend_vm_def.h
index 8d01d99...fd99547 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 592681c..c057695 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;