File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -2211,7 +2211,7 @@ static uint32_t binary_op_result_type(
2211
2211
case ZEND_BW_AND :
2212
2212
case ZEND_BW_XOR :
2213
2213
if ((t1_type & MAY_BE_STRING ) && (t2_type & MAY_BE_STRING )) {
2214
- tmp |= MAY_BE_STRING | MAY_BE_RC1 ;
2214
+ tmp |= MAY_BE_STRING | MAY_BE_RC1 | MAY_BE_RCN ;
2215
2215
}
2216
2216
if ((t1_type & ~MAY_BE_STRING ) || (t2_type & ~MAY_BE_STRING )) {
2217
2217
tmp |= MAY_BE_LONG ;
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ JIT BW_AND: 001 (emty string)
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
+ $ a = [];
11
+ $ b = "" ;
12
+ $ a ["" & $ b ] *= 3 ;
13
+ ?>
14
+ DONE
15
+ --EXPECTF--
16
+ Warning: Undefined array key "" in %sand_001.php on line 4
17
+ DONE
You can’t perform that action at this time.
0 commit comments