File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2674,6 +2674,9 @@ static zend_always_inline zend_result _zend_update_type_info(
2674
2674
}
2675
2675
}
2676
2676
if (opline->extended_value == IS_ARRAY) {
2677
+ if (t1 & (MAY_BE_UNDEF|MAY_BE_NULL)) {
2678
+ tmp |= MAY_BE_ARRAY_EMPTY;
2679
+ }
2677
2680
if (t1 & MAY_BE_ARRAY) {
2678
2681
tmp |= t1 & (MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF);
2679
2682
}
@@ -3387,6 +3390,9 @@ static zend_always_inline zend_result _zend_update_type_info(
3387
3390
arr_type = RES_USE_INFO();
3388
3391
}
3389
3392
tmp = MAY_BE_RC1|MAY_BE_ARRAY|arr_type;
3393
+ if (opline->opcode == ZEND_INIT_ARRAY && opline->op1_type == IS_UNUSED) {
3394
+ tmp |= MAY_BE_ARRAY_EMPTY;
3395
+ }
3390
3396
if (opline->op1_type != IS_UNUSED
3391
3397
&& (opline->op2_type == IS_UNUSED
3392
3398
|| (t2 & (MAY_BE_UNDEF|MAY_BE_NULL|MAY_BE_FALSE|MAY_BE_TRUE|MAY_BE_LONG|MAY_BE_DOUBLE|MAY_BE_RESOURCE|MAY_BE_STRING)))) {
You can’t perform that action at this time.
0 commit comments