mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
14 lines
193 B
Plaintext
14 lines
193 B
Plaintext
|
--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
|