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