diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2020-03-06 11:16:20 +0100 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-03-06 11:16:47 +0100 |
| commit | c3ab8fd3f8d8212d51b14f4d9529fd1fd1f7c2ab (patch) | |
| tree | 4551b6a22d338c4e4c199fa702413a5690f5c146 | |
| parent | b761997de37edf72a6b7f7d458f6503a00c9edb7 (diff) | |
| download | php-git-c3ab8fd3f8d8212d51b14f4d9529fd1fd1f7c2ab.tar.gz | |
Add test for bug #63816
This has been fixed in PHP 7.4, add a test for it.
| -rw-r--r-- | Zend/tests/bug63816.phpt | 45 |
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=== |
