]> granicus.if.org Git - php/commitdiff
fix #30451 static properties don't work properly
authorStanislav Malyshev <stas@php.net>
Wed, 18 May 2005 15:14:36 +0000 (15:14 +0000)
committerStanislav Malyshev <stas@php.net>
Wed, 18 May 2005 15:14:36 +0000 (15:14 +0000)
Zend/zend_object_handlers.c

index 738b0bae270b8e52a2d92289b085cfd02661cd7c..bbba6f489257e76e076124bd7514d6efe0396e8d 100644 (file)
@@ -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);
                }