1--TEST--
2Class constants cannot be inherited from both a class and an interface
3--FILE--
4<?php
5
6class C
7{
8    const C = 1;
9}
10
11interface I
12{
13    const C = 1;
14}
15
16class C2 extends C implements I
17{
18}
19
20?>
21--EXPECTF--
22Fatal error: Class C2 inherits both C::C and I::C, which is ambiguous in %s on line %d
23