cvs: ZendEngine2 / zend_object_handlers.c

From: Date: Sun, 27 Feb 2005 22:22:26 +0000
Subject: cvs: ZendEngine2 / zend_object_handlers.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3445@lists.php.net to get a copy of this message
helly Sun Feb 27 17:22:26 2005 EDT Modified files: /ZendEngine2 zend_object_handlers.c Log: - If silence if wanted we do not error out http://cvs.php.net/diff.php/ZendEngine2/zend_object_handlers.c?r1=1.109&r2=1.110&ty=u Index: ZendEngine2/zend_object_handlers.c diff -u ZendEngine2/zend_object_handlers.c:1.109 ZendEngine2/zend_object_handlers.c:1.110 --- ZendEngine2/zend_object_handlers.c:1.109 Wed Feb 2 02:19:22 2005 +++ ZendEngine2/zend_object_handlers.c Sun Feb 27 17:22:26 2005 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_object_handlers.c,v 1.109 2005/02/02 07:19:22 dmitry Exp $ */ +/* $Id: zend_object_handlers.c,v 1.110 2005/02/27 22:22:26 helly Exp $ */ #include "zend.h" #include "zend_globals.h" @@ -722,7 +722,10 @@ #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);

« previous php.zend-engine.cvs (#3445) next »