mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00

And also cleanup anonymous class compiling, it make no sense prefix a namespace to anonymous class name. and it is always lowcased and interned string.
15 lines
186 B
PHP
15 lines
186 B
PHP
--TEST--
|
|
testing anon classes inside namespaces
|
|
--FILE--
|
|
<?php
|
|
namespace lone {
|
|
$hello = new class{} ;
|
|
}
|
|
|
|
namespace {
|
|
var_dump ($hello);
|
|
}
|
|
--EXPECTF--
|
|
object(class@%s)#1 (0) {
|
|
}
|
|
|