summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2017-10-30 16:26:59 +0800
committerXinchen Hui <laruence@gmail.com>2017-10-30 16:26:59 +0800
commitd9de0f8683286f204facff774b87a99e2461f137 (patch)
tree185eafbe486bde13b5437535b95f38c6dc66e6d9
parent26eb6c5bab6e9229ade5088662180d213b699fa1 (diff)
downloadphp-git-d9de0f8683286f204facff774b87a99e2461f137.tar.gz
Use abbrev
-rw-r--r--ext/opcache/Optimizer/zend_inference.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/opcache/Optimizer/zend_inference.c b/ext/opcache/Optimizer/zend_inference.c
index d333947c66..1d142566ab 100644
--- a/ext/opcache/Optimizer/zend_inference.c
+++ b/ext/opcache/Optimizer/zend_inference.c
@@ -3075,8 +3075,7 @@ static int zend_update_type_info(const zend_op_array *op_array,
}
j = zend_ssa_next_use(ssa_ops, ssa_ops[i].result_def, j);
}
- if ((tmp & MAY_BE_ARRAY)
- && (tmp & (MAY_BE_ARRAY_KEY_LONG|MAY_BE_ARRAY_KEY_STRING))) {
+ if ((tmp & MAY_BE_ARRAY) && (tmp & MAY_BE_ARRAY_KEY_ANY)) {
UPDATE_SSA_TYPE(tmp, ssa_ops[i].op1_def);
} else {
/* invalid key type */