cvs: ZendEngine2 / zend_API.c
| From: | Marcus Boerger | Date: | Sun, 24 Aug 2003 11:07:30 +0000 |
| Subject: | cvs: ZendEngine2 / zend_API.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-1672@lists.php.net to get a copy of this message | ||
helly Sun Aug 24 07:07:30 2003 EDT
Modified files:
/ZendEngine2 zend_API.c
Log:
Fix fn_flags handling
Index: ZendEngine2/zend_API.c
diff -u ZendEngine2/zend_API.c:1.204 ZendEngine2/zend_API.c:1.205
--- ZendEngine2/zend_API.c:1.204 Sat Aug 23 20:36:53 2003
+++ ZendEngine2/zend_API.c Sun Aug 24 07:07:30 2003
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_API.c,v 1.204 2003/08/24 00:36:53 helly Exp $ */
+/* $Id: zend_API.c,v 1.205 2003/08/24 11:07:30 helly Exp $ */
#include "zend.h"
#include "zend_execute.h"
@@ -1184,8 +1184,10 @@
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;
}