]> granicus.if.org Git - php/commitdiff
- Fix test logic
authorMarcus Boerger <helly@php.net>
Tue, 30 May 2006 23:10:55 +0000 (23:10 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 30 May 2006 23:10:55 +0000 (23:10 +0000)
Zend/zend_compile.c

index 8408281d026ae818cae8e8f5cb68fd0452d1758b..ad9537322ce112076587617a9acd53352b562e39 100644 (file)
@@ -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;
        }