xref: /PHP-8.2/ext/opcache/tests/bug77215.phpt (revision e9f783fc)
1--TEST--
2Bug #77215: CFG assertion failure on multiple finalizing switch frees in one block
3--INI--
4opcache.enable_cli=1
5opcache.optimization_level=-1
6--EXTENSIONS--
7opcache
8--FILE--
9<?php
10
11function _crash($eValeur) {
12    switch ($eValeur["a"]) {
13        default:
14            switch($eValeur["a"]) {
15                default:
16                    return 2;
17            }
18    }
19}
20
21var_dump(_crash(["a" => "b"]));
22?>
23--EXPECT--
24int(2)
25