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.
29 lines
421 B
29 lines
421 B
--TEST--
|
|
class namespace
|
|
--FILE--
|
|
<?php
|
|
namespace Test {
|
|
class Session {
|
|
public static function init()
|
|
{
|
|
var_dump(__METHOD__);
|
|
}
|
|
}
|
|
|
|
function foo()
|
|
{
|
|
var_dump(__FUNCTION__);
|
|
}
|
|
}
|
|
namespace {
|
|
use Test\Session;
|
|
function main()
|
|
{
|
|
Session::init();
|
|
Test\foo();
|
|
}
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
string(18) "Test\Session::init"
|
|
string(8) "Test\foo"
|