mirror of
https://github.com/php/php-src.git
synced 2024-10-20 16:02:44 +00:00
17 lines
193 B
Plaintext
17 lines
193 B
Plaintext
|
--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
|
||
|
|