mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
7aacc705d0
Closes GH-5958
16 lines
211 B
PHP
16 lines
211 B
PHP
--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
|