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.
 
 

21 lines
253 B

--TEST--
namespace constants
--FILE--
<?php
namespace foo {
const bar = 42;
}
namespace {
const bar = 35;
function main() {
var_dump(bar);
var_dump(foo\bar);
echo "Done\n";
}
}
?>
--EXPECT--
int(35)
int(42)
Done