Skip to content

Commit d95f465

Browse files
committed
Merge branch 'PHP-7.4'
* PHP-7.4: Add test for bug #63816
2 parents e9ae581 + c3ab8fd commit d95f465

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

Zend/tests/bug63816.phpt

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
--TEST--
2+
Bug #63816: implementation child interface and after parent cause fatal error
3+
--FILE--
4+
<?php
5+
6+
interface RootInterface
7+
{
8+
function foo();
9+
}
10+
11+
interface FirstChildInterface extends RootInterface
12+
{
13+
function foo();
14+
}
15+
16+
interface SecondChildInterface extends RootInterface
17+
{
18+
function foo();
19+
}
20+
21+
class A implements FirstChildInterface, SecondChildInterface
22+
{
23+
function foo()
24+
{
25+
}
26+
}
27+
28+
class B implements RootInterface, FirstChildInterface
29+
{
30+
function foo()
31+
{
32+
}
33+
}
34+
35+
class C implements FirstChildInterface, RootInterface
36+
{
37+
function foo()
38+
{
39+
}
40+
}
41+
42+
?>
43+
===DONE===
44+
--EXPECT--
45+
===DONE===

0 commit comments

Comments
 (0)