mirror of
https://github.com/php/php-src.git
synced 2026-04-27 10:16:41 +02:00
0b1d750d91
Closes GH-9301
16 lines
175 B
PHP
16 lines
175 B
PHP
--TEST--
|
|
Dynamic class name in new is not supported
|
|
--FILE--
|
|
<?php
|
|
|
|
class Foo {}
|
|
const FOO = 'Foo';
|
|
static $x = new (FOO);
|
|
|
|
var_dump($x);
|
|
|
|
?>
|
|
--EXPECT--
|
|
object(Foo)#1 (0) {
|
|
}
|