1--TEST--
2Final interface constants cannot be overridden directly
3--FILE--
4<?php
5
6interface I
7{
8    final public const X = 1;
9}
10
11class C implements I
12{
13    const X = 2;
14}
15
16?>
17--EXPECTF--
18Fatal error: C::X cannot override final constant I::X in %s on line %d
19