xref: /PHP-8.1/ext/opcache/tests/jit/bw_not_001.phpt (revision 3c53a9fd)
1--TEST--
2JIT BW_NOT: 001 Incorrect refcounting inference
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8opcache.protect_memory=1
9--FILE--
10<?php
11$x[~"$x"]*=1;
12?>
13DONE
14--EXPECTF--
15Warning: Undefined variable $x in %sbw_not_001.php on line 2
16
17Warning: Undefined variable $x in %sbw_not_001.php on line 2
18
19Warning: Undefined array key "" in %sbw_not_001.php on line 2
20DONE