summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/bug77215.phpt
blob: 26af4432da9c151af02d586a67cb29d5d6ae29b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--TEST--
Bug #77215: CFG assertion failure on multiple finalizing switch frees in one block
--INI--
opcache.enable_cli=1
opcache.optimization_level=-1
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php

function _crash($eValeur) {
    switch ($eValeur["a"]) {
        default:
            switch($eValeur["a"]) {
                default:
                    return 2;
            }
    }
}

var_dump(_crash(["a" => "b"]));
?>
--EXPECT--
int(2)