1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 10:16:41 +02:00
Files
archived-php-src/Zend/tests/constexpr/new_dynamic_class_name.phpt
2023-05-24 20:17:31 +02:00

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) {
}