RE: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_object_handlers.c
| From: | Dmitry Stogov | Date: | Thu, 19 May 2005 09:48:53 +0000 |
| Subject: | RE: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_object_handlers.c | ||
| References: | 1 | Groups: | php.zend-engine.cvs |
| Request: | Send a blank email to php-zend-engine-cvs+get-3673@lists.php.net to get a copy of this message | ||
Hi Stas,
Seems this fix is wrong.
It breaks Zend/tests/bug30451.phpt.
Thanks. Dmitry.
> -----Original Message-----
> From: Stanislav Malyshev [mailto:stas@php.net]
> Sent: Wednesday, May 18, 2005 7:15 PM
> To: zend-engine-cvs@lists.php.net
> Subject: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_object_handlers.c
>
>
> 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);
}
--
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php