From 1a76b61befc7d4f5c45326449686613dc1387a3a Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Tue, 30 May 2006 23:10:55 +0000 Subject: [PATCH] - Fix test logic --- Zend/zend_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.40.0