mirror of
https://github.com/php/php-src.git
synced 2026-04-26 17:38:14 +02:00
7b8a61a18c
While reviewing the existing tests in the `constexpr` directory, I found that some of the names were not updated to reflect the contents when the contents were changed in #9301. Follow-up to #15638
16 lines
171 B
PHP
16 lines
171 B
PHP
--TEST--
|
|
Dynamic class name in new is supported
|
|
--FILE--
|
|
<?php
|
|
|
|
class Foo {}
|
|
const FOO = 'Foo';
|
|
static $x = new (FOO);
|
|
|
|
var_dump($x);
|
|
|
|
?>
|
|
--EXPECT--
|
|
object(Foo)#1 (0) {
|
|
}
|