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 17