]> granicus.if.org Git - php/commitdiff
- Fix function flag check
authorMarcus Boerger <helly@php.net>
Sun, 4 Jun 2006 10:23:25 +0000 (10:23 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 4 Jun 2006 10:23:25 +0000 (10:23 +0000)
Zend/zend_API.c

index e3ccd6749db4e71f55427e4edf2d0ae61a929a3b..0f3f738612b7ada321c39fb8c84065a1a7d6e019 100644 (file)
@@ -2112,7 +2112,7 @@ ZEND_API int zend_register_functions(zend_class_entry *scope, zend_function_entr
                                        scope->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS;
                                }
                        }
-                       if (ptr->flags & ZEND_ACC_STATIC && (!scope || (scope->ce_flags & ZEND_ACC_INTERFACE))) {
+                       if (ptr->flags & ZEND_ACC_STATIC && (!scope || !(scope->ce_flags & ZEND_ACC_INTERFACE))) {
                                zend_error(error_type, "Static function %s%s%s() cannot be abstract", scope ? scope->name.s : "", scope ? "::" : "", ptr->fname);
                        }
                } else {