summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/tests/bug63816.phpt45
1 files changed, 45 insertions, 0 deletions
diff --git a/Zend/tests/bug63816.phpt b/Zend/tests/bug63816.phpt
new file mode 100644
index 0000000000..b6db9bd1da
--- /dev/null
+++ b/Zend/tests/bug63816.phpt
@@ -0,0 +1,45 @@
+--TEST--
+Bug #63816: implementation child interface and after parent cause fatal error
+--FILE--
+<?php
+
+interface RootInterface
+{
+ function foo();
+}
+
+interface FirstChildInterface extends RootInterface
+{
+ function foo();
+}
+
+interface SecondChildInterface extends RootInterface
+{
+ function foo();
+}
+
+class A implements FirstChildInterface, SecondChildInterface
+{
+ function foo()
+ {
+ }
+}
+
+class B implements RootInterface, FirstChildInterface
+{
+ function foo()
+ {
+ }
+}
+
+class C implements FirstChildInterface, RootInterface
+{
+ function foo()
+ {
+ }
+}
+
+?>
+===DONE===
+--EXPECT--
+===DONE===