xref: /php-src/ext/opcache/tests/opt/match_001.phpt (revision eecbb60d)
1--TEST--
2Match 001: memory leak because of live range lose
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7--FILE--
8<?php
9+$y . +$y . match(y) {}
10?>
11--EXPECTF--
12Warning: Undefined variable $y in %smatch_001.php on line 2
13
14Warning: Undefined variable $y in %smatch_001.php on line 2
15
16Fatal error: Uncaught Error: Undefined constant "y" in %smatch_001.php:2
17Stack trace:
18#0 {main}
19  thrown in %smatch_001.php on line 2
20