From: Marcus Boerger Date: Tue, 30 May 2006 23:10:55 +0000 (+0000) Subject: - Fix test logic X-Git-Tag: BEFORE_NEW_OUTPUT_API~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a76b61befc7d4f5c45326449686613dc1387a3a;p=php - Fix test logic --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 8408281d02..ad9537322c 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -2163,7 +2163,7 @@ static zend_bool do_inherit_method_check(HashTable *child_function_table, zend_f if (parent_flags & ZEND_ACC_ABSTRACT) { child->common.fn_flags |= ZEND_ACC_IMPLEMENTED_ABSTRACT; child->common.prototype = parent; - } else if (!(parent->common.fn_flags & ZEND_ACC_CTOR) || (parent->common.prototype && parent->common.prototype->common.scope->ce_flags && ZEND_ACC_INTERFACE)) { + } else if (!(parent->common.fn_flags & ZEND_ACC_CTOR) || (parent->common.prototype && (parent->common.prototype->common.scope->ce_flags & ZEND_ACC_INTERFACE))) { /* ctors only have a prototype if it comes from an interface */ child->common.prototype = parent->common.prototype ? parent->common.prototype : parent; }