com php-src: Clone cannot return reference: ext/opcache/Optimiz er/zend_inference.c
| From: | Nikita Popov | Date: | Fri, 18 Dec 2015 16:37:13 +0000 |
| Subject: | com php-src: Clone cannot return reference: ext/opcache/Optimiz er/zend_inference.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-90340@lists.php.net to get a copy of this message | ||
Commit: 7cc3089d8fe3ca4d0dbbd43b2efc2b654ae5ec1b
Author: Nikita Popov <nikic@php.net> Fri, 18 Dec 2015 17:34:27 +0100
Parents: 8ca21876e1351b9e120fbf49d902bb8d03a7ca2b
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7cc3089d8fe3ca4d0dbbd43b2efc2b654ae5ec1b
Log:
Clone cannot return reference
Changed paths:
M ext/opcache/Optimizer/zend_inference.c
Diff:
diff --git a/ext/opcache/Optimizer/zend_inference.c b/ext/opcache/Optimizer/zend_inference.c
index 4387571..b4a9fe0 100644
--- a/ext/opcache/Optimizer/zend_inference.c
+++ b/ext/opcache/Optimizer/zend_inference.c
@@ -3216,8 +3216,7 @@ static void zend_update_type_info(const zend_op_array *op_array,
UPDATE_SSA_TYPE(tmp, ssa_ops[i].result_def);
break;
case ZEND_CLONE:
- /* FIXME: For some reason "clone" return reference */
- UPDATE_SSA_TYPE(MAY_BE_DEF|MAY_BE_REF|MAY_BE_OBJECT, ssa_ops[i].result_def);
+ UPDATE_SSA_TYPE(MAY_BE_DEF|MAY_BE_OBJECT, ssa_ops[i].result_def);
if ((t1 & MAY_BE_OBJECT) && ssa_ops[i].op1_use >= 0 &&
ssa_var_info[ssa_ops[i].op1_use].ce) {
UPDATE_SSA_OBJ_TYPE(ssa_var_info[ssa_ops[i].op1_use].ce,
ssa_var_info[ssa_ops[i].op1_use].is_instanceof, ssa_ops[i].result_def);
} else {