From: Derick Rethans Date: Thu, 31 Mar 2005 15:44:52 +0000 (+0000) Subject: - MFH: internal_function->fn_flags is not initialized at this point X-Git-Tag: php-5.0.5RC1~503 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=56bad109e26afd34fe8bec2bca202ad1b9559c83;p=php - MFH: internal_function->fn_flags is not initialized at this point --- diff --git a/Zend/zend_API.c b/Zend/zend_API.c index f5c3ae195d..2e60c59db9 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -1305,7 +1305,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; }