1
0
mirror of https://github.com/php/php-src.git synced 2026-04-16 20:41:18 +02:00
Files
archived-php-src/Zend/tests/constant_expressions_dynamic_class_name_error.phpt
Nikita Popov 51119054ff Test error conditions for ct class const refs
And fix a bug found while doing so...
2014-09-23 00:40:17 +02:00

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