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