1.1 misho 1: --TEST-- 2: Bug #29944 (Function defined in switch, crashes) 3: --FILE-- 4: <?php 5: $a = 1; 6: switch ($a) { 7: case 1: 8: function foo($a) { 9: return "ok\n"; 10: } 11: echo foo($a); 12: } 13: ?> 14: --EXPECT-- 15: ok 16: