xref: /PHP-8.1/ext/opcache/tests/opt/tmp_001.phpt (revision 3b735456)
1--TEST--
2TMP variable optimization 001: TMP variable renumbering should be done after DFA optimizations
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7--FILE--
8<?php
9is_a((int)" $y " + 0);
10?>
11--EXPECTF--
12Warning: Undefined variable $y in %stmp_001.php on line 2
13
14Fatal error: Uncaught ArgumentCountError: is_a() expects at least 2 arguments, 1 given in %stmp_001.php:2
15Stack trace:
16#0 %stmp_001.php(2): is_a(0)
17#1 {main}
18  thrown in %stmp_001.php on line 2