]> granicus.if.org Git - php/commitdiff
- Fix method flag handling
authorMarcus Boerger <helly@php.net>
Sun, 19 Feb 2006 10:39:31 +0000 (10:39 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 19 Feb 2006 10:39:31 +0000 (10:39 +0000)
Zend/zend_API.c

index b777f5130f41c48bdd09f14dae2a0c566354f329..00f5166f043ebda980748d37387e1454e4ace1a1 100644 (file)
@@ -1555,7 +1555,7 @@ ZEND_API int zend_register_functions(zend_class_entry *scope, zend_function_entr
                if (ptr->flags) {
                        if (!(ptr->flags & ZEND_ACC_PPP_MASK)) {
                                zend_error(error_type, "Invalid access level for %s%s%s() - access must be exactly one of public, protected or private", scope ? scope->name : "", scope ? "::" : "", ptr->fname);
-                               internal_function->fn_flags = ZEND_ACC_PUBLIC;
+                               internal_function->fn_flags = ZEND_ACC_PUBLIC | ptr->flags;
                        } else {
                                internal_function->fn_flags = ptr->flags;
                        }