diff options
author | Andrei Zmievski <andrei@php.net> | 2005-03-21 06:20:17 +0000 |
---|---|---|
committer | Andrei Zmievski <andrei@php.net> | 2005-03-21 06:20:17 +0000 |
commit | 9bf6a7f22968abd5dd5414daf51a90100663837d (patch) | |
tree | a308068ae48222463bc772806f35b29f7b7685e9 | |
parent | c590531c071b4f163e403ff2c51d6fca63131bdd (diff) | |
download | php-git-9bf6a7f22968abd5dd5414daf51a90100663837d.tar.gz |
internal_function->fn_flags is not initialized at this point
-rw-r--r-- | Zend/zend_API.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c index 0a62c4974a..3a9f7bad3d 100644 --- a/Zend/zend_API.c +++ b/Zend/zend_API.c @@ -1327,7 +1327,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; } |