File tree 2 files changed +21
-1
lines changed
2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -2402,7 +2402,7 @@ static zend_always_inline int _zend_update_type_info(
2402
2402
case ZEND_BW_NOT :
2403
2403
tmp = 0 ;
2404
2404
if (t1 & MAY_BE_STRING ) {
2405
- tmp |= MAY_BE_STRING | MAY_BE_RC1 ;
2405
+ tmp |= MAY_BE_STRING | MAY_BE_RC1 | MAY_BE_RCN ;
2406
2406
}
2407
2407
if (t1 & (MAY_BE_ANY - MAY_BE_STRING )) {
2408
2408
tmp |= MAY_BE_LONG ;
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ JIT BW_NOT: 001 Incorrect refcounting inference
3
+ --INI--
4
+ opcache.enable=1
5
+ opcache.enable_cli=1
6
+ opcache.file_update_protection=0
7
+ opcache.jit_buffer_size=1M
8
+ opcache.protect_memory=1
9
+ --FILE--
10
+ <?php
11
+ $ x [~"$ x " ]*=1 ;
12
+ ?>
13
+ DONE
14
+ --EXPECTF--
15
+ Warning: Undefined variable $x in %sbw_not_001.php on line 2
16
+
17
+ Warning: Undefined variable $x in %sbw_not_001.php on line 2
18
+
19
+ Warning: Undefined array key "" in %sbw_not_001.php on line 2
20
+ DONE
You can’t perform that action at this time.
0 commit comments