mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
7aacc705d0
Closes GH-5958
16 lines
188 B
PHP
16 lines
188 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) {
|
|
}
|