File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Expand file tree Collapse file tree 2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -2669,6 +2669,9 @@ static zend_always_inline int _zend_update_type_info(
2669
2669
if (t1 & MAY_BE_STRING ) {
2670
2670
tmp |= MAY_BE_STRING | MAY_BE_NULL ;
2671
2671
}
2672
+ if (t1 & MAY_BE_OBJECT ) {
2673
+ tmp |= (MAY_BE_ANY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF );
2674
+ }
2672
2675
if (t1 & (MAY_BE_ARRAY |MAY_BE_FALSE |MAY_BE_NULL |MAY_BE_UNDEF )) {
2673
2676
tmp |= (OP1_DATA_INFO () & (MAY_BE_ANY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF ));
2674
2677
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ JIT ASSIGN_DIM: 012
3
+ --INI--
4
+ opcache.enable=1
5
+ opcache.enable_cli=1
6
+ opcache.file_update_protection=0
7
+ opcache.jit_buffer_size=1M
8
+ --FILE--
9
+ <?php
10
+ function test ($ key ) {
11
+ $ ao = new ArrayObject ();
12
+ $ ao [$ key ] = 1 < $ ao ['321 ' ] = 2 ;
13
+ }
14
+ test ('0 ' );
15
+ ?>
16
+ DONE
17
+ --EXPECTF--
18
+ DONE
You can’t perform that action at this time.
0 commit comments