mirror of
https://github.com/php/php-src.git
synced 2024-09-29 05:46:06 +00:00
6d8760677d
- altered EXPECT for parser errors. This may or may not be a Good Thing.
16 lines
192 B
PHP
16 lines
192 B
PHP
--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
|