php-src/Zend/tests/constant_expressions_static_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

11 lines
193 B
PHP

--TEST--
Cannot use static::FOO in constant expressions
--FILE--
<?php
const C = static::FOO;
?>
--EXPECTF--
Fatal error: "static::" is not allowed in compile-time constants in %s on line %d