1
0
mirror of https://github.com/php/php-src.git synced 2026-04-26 09:28:21 +02:00

Fix fn_flags handling

This commit is contained in:
Marcus Boerger
2003-08-24 11:07:30 +00:00
parent b196c0551e
commit 3605be8a29
+3 -1
View File
@@ -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;
}