summaryrefslogtreecommitdiff
path: root/Zend/zend_API.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2006-02-19 10:39:31 +0000
committerMarcus Boerger <helly@php.net>2006-02-19 10:39:31 +0000
commitf0d9ae46c3a8cbc9c3558a808d6cf04a30ce3327 (patch)
tree6e298be54d5d6c8b1543a5466cebc510eb20bee0 /Zend/zend_API.c
parentafd8f0b608cbcbefb6d8ec5c02541a08295d20eb (diff)
downloadphp-git-f0d9ae46c3a8cbc9c3558a808d6cf04a30ce3327.tar.gz
- Fix method flag handling
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r--Zend/zend_API.c2
1 files changed, 1 insertions, 1 deletions
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;
}