Edit report at https://bugs.php.net/bug.php?id=63816&edit=1
ID: 63816
Updated by: larue...@php.net
Reported by:kotlyar dot maksim at gmail dot com
Summary:implementation child interface and after parent
cause fatal error.
Status: Open
Type: Bug
Package:Scripting Engine problem
Operating System: linux
PHP Version:5.4.7
-Assigned To:
+Assigned To:dmitry
Block user comment: N
Private report: N
New Comment:
not sure why such error is threw in zend_compile.c line 2926
we can simply be silence(or warning), then ignore it.
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index e395795..9063023 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -2920,11 +2920,7 @@ ZEND_API void
zend_do_implement_interface(zend_class_entry *ce, zend_class_entry
memmove(ce->interfaces + i, ce->interfaces + i + 1,
sizeof(zend_class_entry*) * (--ce->num_interfaces - i));
i--;
} else if (ce->interfaces[i] == iface) {
- if (i < parent_iface_num) {
- ignore = 1;
- } else {
- zend_error(E_COMPILE_ERROR, "Class %s cannot
implement previously implemented interface %s", ce->name, iface->name);
- }
+ ignore = 1;
}
}
if (ignore) {
Previous Comments:
[2012-12-20 15:31:55] kotlyar dot maksim at gmail dot com
Change php version
[2012-12-20 15:29:23] kotlyar dot maksim at gmail dot com
Description:
Order of implemented interfaces should make any difference. But it is not the
case. If I implement child interface and parent after I will get a fatal error
Test script:
---
https://bugs.php.net/bug.php?id=63816&edit=1