xref: /PHP-8.3/Zend/tests/match/045.phpt (revision 493c91c7)
1--TEST--
2Corrupted CFG due to unreachable free with match
3--FILE--
4<?php
5function test() {
6    var_dump(match(x){});
7    match(y){
8        3, 4 => 5,
9    };
10}
11try {
12    test();
13} catch (Error $e) {
14    echo $e->getMessage(), "\n";
15}
16?>
17--EXPECT--
18Undefined constant "x"
19