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(
26692669 if (t1 & MAY_BE_STRING ) {
26702670 tmp |= MAY_BE_STRING | MAY_BE_NULL ;
26712671 }
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+ }
26722675 if (t1 & (MAY_BE_ARRAY |MAY_BE_FALSE |MAY_BE_NULL |MAY_BE_UNDEF )) {
26732676 tmp |= (OP1_DATA_INFO () & (MAY_BE_ANY | MAY_BE_ARRAY_KEY_ANY | MAY_BE_ARRAY_OF_ANY | MAY_BE_ARRAY_OF_REF ));
26742677
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