summaryrefslogtreecommitdiff
path: root/tests/classes/constants_visibility_006.phpt
blob: 537c8eac0f286cd9125a64fcb06ae5c6a05760fa (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
Abstract constants are not allowed
--FILE--
<?php
class A {
	abstract const X = 1;
}
?>
--EXPECTF--
Fatal error: Cannot use 'abstract' as constant modifier in %s on line 3