Skip to content

Commit 0972a21

Browse files
committed
objects may be nested in array operands
1 parent bd346bf commit 0972a21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/Optimizer/zend_inference.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4100,7 +4100,7 @@ int zend_may_throw(const zend_op *opline, zend_op_array *op_array, zend_ssa *ssa
41004100
|| (t2 & MAY_BE_ANY) == MAY_BE_NULL) {
41014101
return 0;
41024102
}
4103-
return (t1 & MAY_BE_OBJECT) || (t2 & MAY_BE_OBJECT);
4103+
return (t1 & (MAY_BE_OBJECT|MAY_BE_ARRAY_OF_ARRAY|MAY_BE_ARRAY_OF_OBJECT)) || (t2 & (MAY_BE_OBJECT|MAY_BE_ARRAY_OF_ARRAY|MAY_BE_ARRAY_OF_OBJECT));
41044104
case ZEND_ASSIGN_ADD:
41054105
if (opline->extended_value != 0) {
41064106
return 1;

0 commit comments

Comments
 (0)