From f0d9ae46c3a8cbc9c3558a808d6cf04a30ce3327 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sun, 19 Feb 2006 10:39:31 +0000 Subject: [PATCH] - Fix method flag handling --- Zend/zend_API.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_API.c b/Zend/zend_API.c index b777f5130f..00f5166f04 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -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; } -- 2.50.1