TypePHP 编译器 https://swoole.com/aot/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

20 lines
293 B

--TEST--
Bug #29944 (function defined in switch crashes PHP)
--FILE--
<?php
function foo($bar) {
if (preg_match('/\d/', $bar)) return true;
return false;
}
function main() {
$a = 1;
$b = "1";
switch ($a) {
case 1:
echo foo($b);
}
}
?>
--EXPECT--
1