mirror of
https://github.com/php/php-src.git
synced 2024-12-12 03:15:29 +08:00
14 lines
192 B
PHP
14 lines
192 B
PHP
--TEST--
|
|
008: __NAMESPACE__ constant and runtime names (ns name)
|
|
--FILE--
|
|
<?php
|
|
namespace test;
|
|
|
|
class foo {
|
|
}
|
|
|
|
$x = __NAMESPACE__ . "\\foo";
|
|
echo get_class(new $x),"\n";
|
|
--EXPECT--
|
|
test\foo
|