File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -2446,7 +2446,7 @@ static zend_always_inline int _zend_update_type_info(
24462446 case ZEND_BW_NOT :
24472447 tmp = 0 ;
24482448 if (t1 & MAY_BE_STRING ) {
2449- tmp |= MAY_BE_STRING | MAY_BE_RC1 ;
2449+ tmp |= MAY_BE_STRING | MAY_BE_RC1 | MAY_BE_RCN ;
24502450 }
24512451 if (t1 & (MAY_BE_ANY - MAY_BE_STRING )) {
24522452 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