mirror of
https://github.com/php/php-src.git
synced 2024-12-19 06:50:17 +08:00
15 lines
207 B
PHP
Executable File
15 lines
207 B
PHP
Executable File
--TEST--
|
|
018: __NAMESPACE__ constant and runtime names (ns name)
|
|
--FILE--
|
|
<?php
|
|
namespace test;
|
|
|
|
function foo() {
|
|
return __FUNCTION__;
|
|
}
|
|
|
|
$x = __NAMESPACE__ . "::foo";
|
|
echo $x(),"\n";
|
|
--EXPECT--
|
|
test::foo
|