From: Marcus Boerger Date: Sun, 27 Feb 2005 22:22:26 +0000 (+0000) Subject: - If silence if wanted we do not error out X-Git-Tag: RELEASE_0_3~149 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a586cecf35d242d98832527e55bb6203e69c6342;p=php - If silence if wanted we do not error out --- diff --git a/Zend/zend_object_handlers.c b/Zend/zend_object_handlers.c index 21f879adc1..b70c8f5ae9 100644 --- a/Zend/zend_object_handlers.c +++ b/Zend/zend_object_handlers.c @@ -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);