Index: zend_compile.c =================================================================== RCS file: /repository/ZendEngine2/zend_compile.c,v retrieving revision 1.603 diff -u -r1.603 zend_compile.c --- zend_compile.c 11 Jan 2005 17:17:48 -0000 1.603 +++ zend_compile.c 16 Jan 2005 18:41:40 -0000 @@ -1856,7 +1856,10 @@ if (parent->common.fn_flags & ZEND_ACC_ABSTRACT && parent->common.scope != (child->common.prototype ? child->common.prototype->common.scope : child->common.scope) - && child->common.fn_flags & (ZEND_ACC_ABSTRACT|ZEND_ACC_IMPLEMENTED_ABSTRACT)) { + && child->common.fn_flags & (ZEND_ACC_ABSTRACT|ZEND_ACC_IMPLEMENTED_ABSTRACT) + && + (parent->common.num_args != child->common.num_args || parent->common.required_num_args != child->common.required_num_args) + ) { zend_error(E_COMPILE_ERROR, "Can't inherit abstract function %s::%s() (previously declared abstract in %s)", parent->common.scope->name, child->common.function_name,