mirror of
https://github.com/php/php-src.git
synced 2024-09-30 22:36:12 +00:00
51119054ff
And fix a bug found while doing so...
11 lines
193 B
PHP
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
|