1--TEST--
2Final constants are not allowed
3--FILE--
4<?php
5class A {
6    final const X = 1;
7}
8?>
9--EXPECTF--
10Fatal error: Cannot use 'final' as constant modifier in %s on line 3
11