xref: /PHP-7.3/ext/opcache/tests/bug77215.phpt (revision 75bc3446)
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--SKIPIF--
7<?php require_once('skipif.inc'); ?>
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