mirror of
https://github.com/php/php-src.git
synced 2024-10-01 23:06:11 +00:00
51119054ff
And fix a bug found while doing so...
12 lines
249 B
PHP
12 lines
249 B
PHP
--TEST--
|
|
Dynamic class names can't be used in compile-time constant refs
|
|
--FILE--
|
|
<?php
|
|
|
|
$foo = 'test';
|
|
const C = $foo::BAR;
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Dynamic class names are not allowed in compile-time class constant references in %s on line %d
|