mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
15 lines
207 B
Plaintext
15 lines
207 B
Plaintext
|
--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
|