xref: /PHP-7.4/Zend/tests/bug63816.phpt (revision c3ab8fd3)
1--TEST--
2Bug #63816: implementation child interface and after parent cause fatal error
3--FILE--
4<?php
5
6interface RootInterface
7{
8    function foo();
9}
10
11interface FirstChildInterface extends RootInterface
12{
13    function foo();
14}
15
16interface SecondChildInterface extends RootInterface
17{
18    function foo();
19}
20
21class A implements FirstChildInterface, SecondChildInterface
22{
23    function foo()
24    {
25    }
26}
27
28class B implements RootInterface, FirstChildInterface
29{
30    function foo()
31    {
32    }
33}
34
35class C implements FirstChildInterface, RootInterface
36{
37    function foo()
38    {
39    }
40}
41
42?>
43===DONE===
44--EXPECT--
45===DONE===
46