cvs: ZendEngine2(PHP_5_3) / zend_object_handlers.c

From: Date: Thu, 18 Oct 2007 20:44:41 +0000
Subject: cvs: ZendEngine2(PHP_5_3) / zend_object_handlers.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-6097@lists.php.net to get a copy of this message
stas Thu Oct 18 20:44:41 2007 UTC Modified files: (Branch: PHP_5_3) /ZendEngine2 zend_object_handlers.c Log: ws http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_object_handlers.c?r1=1.135.2.6.2.22.2.3&r2=1.135.2.6.2.22.2.4&diff_format=u Index: ZendEngine2/zend_object_handlers.c diff -u ZendEngine2/zend_object_handlers.c:1.135.2.6.2.22.2.3 ZendEngine2/zend_object_handlers.c:1.135.2.6.2.22.2.4 --- ZendEngine2/zend_object_handlers.c:1.135.2.6.2.22.2.3 Thu Oct 11 01:02:49 2007 +++ ZendEngine2/zend_object_handlers.c Thu Oct 18 20:44:41 2007 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_object_handlers.c,v 1.135.2.6.2.22.2.3 2007/10/11 01:02:49 helly Exp $ */ +/* $Id: zend_object_handlers.c,v 1.135.2.6.2.22.2.4 2007/10/18 20:44:41 stas Exp $ */ #include "zend.h" #include "zend_globals.h" @@ -1130,14 +1130,14 @@ case IS_STRING: ce = Z_OBJCE_P(readobj); if (ce->__tostring && - (zend_call_method_with_0_params(&readobj, ce, &ce->__tostring, "__tostring", &retval) || EG(exception))) { - if (EG(exception)) { - if (retval) { - zval_ptr_dtor(&retval); - } + (zend_call_method_with_0_params(&readobj, ce, &ce->__tostring, "__tostring", &retval) || EG(exception))) { + if (EG(exception)) { + if (retval) { + zval_ptr_dtor(&retval); + } zend_error(E_ERROR, "Method %s::__toString() must not throw an exception", ce->name); - return FAILURE; - } + return FAILURE; + } if (Z_TYPE_P(retval) == IS_STRING) { INIT_PZVAL(writeobj); ZVAL_ZVAL(writeobj, retval, 1, 1);

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