xref: /PHP-8.4/ext/opcache/tests/opt/match_002.phpt (revision 04645242)
1--TEST--
2Match 002: memory leak because of incorrect optimization
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7--FILE--
8<?php
9match($y=y){};
10?>
11--EXPECTF--
12Fatal error: Uncaught Error: Undefined constant "y" in %smatch_002.php:2
13Stack trace:
14#0 {main}
15  thrown in %smatch_002.php on line 2
16