From: Stanislav Malyshev Date: Wed, 18 May 2005 15:14:36 +0000 (+0000) Subject: fix #30451 static properties don't work properly X-Git-Tag: php-5.0.1b1~220 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e04666ae20360fcd0e21ccfc35da69153ff18138;p=php fix #30451 static properties don't work properly --- diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c index 738b0bae27..bbba6f4892 100644 --- a/Zend/zend_object_handlers.c +++ b/Zend/zend_object_handlers.c @@ -734,11 +734,11 @@ ZEND_API zval **zend_std_get_static_property(zend_class_entry *ce, char *propert 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); }