xref: /PHP-7.2/Zend/tests/bug29944.phpt (revision f1d7e3ca)
1--TEST--
2Bug #29944 (Function defined in switch, crashes)
3--FILE--
4<?php
5$a = 1;
6switch ($a) {
7  case 1:
8    function foo($a) {
9      return "ok\n";
10    }
11    echo foo($a);
12}
13?>
14--EXPECT--
15ok
16