mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +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
|