mirror of
https://github.com/php/php-src.git
synced 2026-03-26 01:02:25 +01:00
11 lines
178 B
PHP
11 lines
178 B
PHP
--TEST--
|
|
Static constants are not allowed
|
|
--FILE--
|
|
<?php
|
|
class A {
|
|
static const X = 1;
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot use 'static' as constant modifier in %s on line 3
|