summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-08-24 11:07:30 +0000
committerMarcus Boerger <helly@php.net>2003-08-24 11:07:30 +0000
commit3605be8a29c3576d35e7304539f22174c8df372f (patch)
tree8267680bc8fbd45f1e8b960cc47b3c292f34f2b5
parentb196c0551ed9ef4bbe598b818da90f2d4c45acbd (diff)
downloadphp-git-3605be8a29c3576d35e7304539f22174c8df372f.tar.gz
Fix fn_flags handling
-rw-r--r--Zend/zend_API.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index 50a2ad1de9..3451f0ff5a 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -1184,8 +1184,10 @@ int zend_register_functions(zend_class_entry *scope, zend_function_entry *functi
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;
+ } else {
+ internal_function->fn_flags = ptr->flags;
}
- internal_function->fn_flags = ptr->flags;
} else {
internal_function->fn_flags = ZEND_ACC_PUBLIC;
}