]> granicus.if.org Git - php/commitdiff
- If silence if wanted we do not error out
authorMarcus Boerger <helly@php.net>
Sun, 27 Feb 2005 22:22:26 +0000 (22:22 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 27 Feb 2005 22:22:26 +0000 (22:22 +0000)
Zend/zend_object_handlers.c

index 21f879adc1815e536f6ddd68868007b07d19561e..b70c8f5ae9672771b5e631d93fe70f9921597c2a 100644 (file)
@@ -722,7 +722,10 @@ ZEND_API zval **zend_std_get_static_property(zend_class_entry *ce, char *propert
 #endif
 
        if (!zend_verify_property_access(property_info, ce TSRMLS_CC)) {
-               zend_error(E_ERROR, "Cannot access %s property %s::$%s", zend_visibility_string(property_info->flags), ce->name, property_name);
+               if (!silent) {
+                       zend_error(E_ERROR, "Cannot access %s property %s::$%s", zend_visibility_string(property_info->flags), ce->name, property_name);
+               }
+               return NULL;
        }
 
        zend_hash_quick_find(tmp_ce->static_members, property_info->name, property_info->name_length+1, property_info->h, (void **) &retval);