summaryrefslogtreecommitdiff
path: root/Zend/zend_compile.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2006-03-05 18:23:56 +0000
committerMarcus Boerger <helly@php.net>2006-03-05 18:23:56 +0000
commitb0f461e9d9d63c81c07e257493e237df8bbee8c3 (patch)
tree1e88160d262b64852d79a76e1941d233fb67efe0 /Zend/zend_compile.c
parent05fa58f84e64b5c136bf0588703d951ad6325cc5 (diff)
downloadphp-git-b0f461e9d9d63c81c07e257493e237df8bbee8c3.tar.gz
- Fix Bug #34019 by popular demand: Implementing interface with a
__construct method strange behaviour
Diffstat (limited to 'Zend/zend_compile.c')
-rw-r--r--Zend/zend_compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 08a90cc85a..09eb3212a0 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -2055,7 +2055,7 @@ static zend_bool zend_do_perform_implementation_check(zend_function *fe, zend_fu
}
/* No implementation checks for constructors */
- if (fe->common.fn_flags & ZEND_ACC_CTOR) {
+ if ((fe->common.fn_flags & ZEND_ACC_CTOR) && !(proto->common.scope->ce_flags & ZEND_ACC_INTERFACE)) {
return 1;
}