diff options
Diffstat (limited to 'Zend')
-rw-r--r-- | Zend/zend_compile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index e6ccf2e310..1330f295d0 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -1920,8 +1920,8 @@ static zend_bool zend_do_perform_implementation_check(zend_function *fe, zend_fu return 1; } - /* No implementation checks for constructors */ - if (fe->common.fn_flags & ZEND_ACC_CTOR) { + /* Checks for constructors only if they are declared in an interface */ + if ((fe->common.fn_flags & ZEND_ACC_CTOR) && !(proto->common.scope->ce_flags & ZEND_ACC_INTERFACE)) { return 1; } |