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.
 
 

28 lines
367 B

--TEST--
aliasing imported constants to resolve naming conflicts
--FILE--
<?php
namespace foo {
const baz = 42;
}
namespace bar {
const baz = 43;
}
namespace {
use const foo\baz;
use const bar\baz as bar_baz;
function main() {
var_dump(baz);
var_dump(bar_baz);
echo "Done\n";
}
}
?>
--EXPECT--
int(42)
int(43)
Done