File tree 2 files changed +19
-1
lines changed
2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -3227,7 +3227,7 @@ static zend_always_inline int _zend_update_type_info(
3227
3227
tmp |= t1 & (MAY_BE_RC1 |MAY_BE_RCN );
3228
3228
}
3229
3229
if (opline -> op2_type == IS_UNUSED ) {
3230
- if (t1 & (MAY_BE_UNDEF |MAY_BE_NULL )) {
3230
+ if (t1 & (MAY_BE_UNDEF |MAY_BE_NULL | MAY_BE_FALSE )) {
3231
3231
key_type |= MAY_BE_ARRAY_PACKED ;
3232
3232
}
3233
3233
if (t1 & MAY_BE_ARRAY ) {
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Type inference 010: FRTCH_DIM_W
3
+ --INI--
4
+ opcache.enable=1
5
+ opcache.enable_cli=1
6
+ opcache.optimization_level=-1
7
+ --FILE--
8
+ <?php
9
+ function foo () {
10
+ $ x = false ;
11
+ $ x [] = &$ y ;
12
+ }
13
+ foo ();
14
+ ?>
15
+ DONE
16
+ --EXPECTF--
17
+ Deprecated: Automatic conversion of false to array is deprecated in %sinference_010.php on line 4
18
+ DONE
You can’t perform that action at this time.
0 commit comments