For Programmers: Free Programming Magazines  


Home > Archive > PHP Zend Engine > March 2005 > cvs: ZendEngine2 / zend_API.c









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: ZendEngine2 / zend_API.c
Andrei Zmievski

2005-03-21, 3:55 am

andrei Mon Mar 21 01:20:18 2005 EDT

Modified files:
/ZendEngine2 zend_API.c
Log:
internal_function->fn_flags is not initialized at this point


http://cvs.php.net/diff.php/ZendEng...0&r2=1.281&ty=u
Index: ZendEngine2/zend_API.c
diff -u ZendEngine2/zend_API.c:1.280 ZendEngine2/zend_API.c:1.281
--- ZendEngine2/zend_API.c:1.280 Tue Mar 15 23:18:42 2005
+++ ZendEngine2/zend_API.c Mon Mar 21 01:20:17 2005
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/

-/* $Id: zend_API.c,v 1.280 2005/03/16 04:18:42 wez Exp $ */
+/* $Id: zend_API.c,v 1.281 2005/03/21 06:20:17 andrei Exp $ */

#include "zend.h"
#include "zend_execute.h"
@@ -1327,7 +1327,7 @@
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;
}
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com