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