cvs: ZendEngine2 / zend_object_handlers.c
| From: | Stanislav Malyshev | Date: | Wed, 18 May 2005 15:14:36 +0000 |
| Subject: | cvs: ZendEngine2 / zend_object_handlers.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-3662@lists.php.net to get a copy of this message | ||
stas Wed May 18 11:14:36 2005 EDT
Modified files:
/ZendEngine2 zend_object_handlers.c
Log:
fix #30451 static properties don't work properly
http://cvs.php.net/diff.php/ZendEngine2/zend_object_handlers.c?r1=1.123&r2=1.124&ty=u
Index: ZendEngine2/zend_object_handlers.c
diff -u ZendEngine2/zend_object_handlers.c:1.123 ZendEngine2/zend_object_handlers.c:1.124
--- ZendEngine2/zend_object_handlers.c:1.123 Tue May 3 08:47:27 2005
+++ ZendEngine2/zend_object_handlers.c Wed May 18 11:14:36 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_object_handlers.c,v 1.123 2005/05/03 12:47:27 dmitry Exp $ */
+/* $Id: zend_object_handlers.c,v 1.124 2005/05/18 15:14:36 stas Exp $ */
#include "zend.h"
#include "zend_globals.h"
@@ -734,11 +734,11 @@
property_info = &std_property_info;
}
-#if 1&&DEBUG_OBJECT_HANDLERS
+#if DEBUG_OBJECT_HANDLERS
zend_printf("Access type for %s::%s is %s\n", ce->name, property_name,
zend_visibility_string(property_info->flags));
#endif
- if (!zend_verify_property_access(property_info, ce TSRMLS_CC)) {
+ if (!zend_verify_property_access(property_info, EG(scope) TSRMLS_CC)) {
if (!silent) {
zend_error(E_ERROR, "Cannot access %s property %s::$%s",
zend_visibility_string(property_info->flags), ce->name, property_name);
}