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