mirror of
https://github.com/php/php-src.git
synced 2024-12-15 12:54:57 +08:00
13 lines
185 B
PHP
13 lines
185 B
PHP
--TEST--
|
|
019: __NAMESPACE__ constant and runtime names (php name)
|
|
--FILE--
|
|
<?php
|
|
function foo() {
|
|
return __FUNCTION__;
|
|
}
|
|
|
|
$x = __NAMESPACE__ . "\\foo";
|
|
echo $x(),"\n";
|
|
--EXPECT--
|
|
foo
|