]> granicus.if.org Git - php/commitdiff
internal_function->fn_flags is not initialized at this point
authorAndrei Zmievski <andrei@php.net>
Mon, 21 Mar 2005 06:20:17 +0000 (06:20 +0000)
committerAndrei Zmievski <andrei@php.net>
Mon, 21 Mar 2005 06:20:17 +0000 (06:20 +0000)
Zend/zend_API.c

index 0a62c4974ad2211343154ebbc53afd78759eca39..3a9f7bad3d74a6db94c111c5eb78c006e34ae9df 100644 (file)
@@ -1327,7 +1327,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;
                        } else {
                                internal_function->fn_flags = ptr->flags;
                        }