mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
12 lines
170 B
PHP
12 lines
170 B
PHP
--TEST--
|
|
009: __NAMESPACE__ constant and runtime names (php name)
|
|
--FILE--
|
|
<?php
|
|
class foo {
|
|
}
|
|
|
|
$x = __NAMESPACE__ . "\\foo";
|
|
echo get_class(new $x),"\n";
|
|
--EXPECT--
|
|
foo
|