--- embedaddon/php/Zend/zend_interfaces.c 2012/05/29 12:34:35 1.1.1.2 +++ embedaddon/php/Zend/zend_interfaces.c 2014/06/15 20:04:03 1.1.1.4 @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | Zend Engine | +----------------------------------------------------------------------+ - | Copyright (c) 1998-2012 Zend Technologies Ltd. (http://www.zend.com) | + | Copyright (c) 1998-2014 Zend Technologies Ltd. (http://www.zend.com) | +----------------------------------------------------------------------+ | This source file is subject to version 2.00 of the Zend license, | | that is bundled with this package in the file LICENSE, and is | @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_interfaces.c,v 1.1.1.2 2012/05/29 12:34:35 misho Exp $ */ +/* $Id: zend_interfaces.c,v 1.1.1.4 2014/06/15 20:04:03 misho Exp $ */ #include "zend.h" #include "zend_API.h" @@ -127,7 +127,7 @@ ZEND_API zval *zend_user_it_new_iterator(zend_class_en } /* }}} */ -/* {{{ zend_user_it_dtor */ +/* {{{ zend_user_it_invalidate_current */ ZEND_API void zend_user_it_invalidate_current(zend_object_iterator *_iter TSRMLS_DC) { zend_user_iterator *iter = (zend_user_iterator*)_iter; @@ -452,7 +452,7 @@ ZEND_API int zend_user_serialize(zval *object, unsigne zval_ptr_dtor(&retval); } - if (result == FAILURE) { + if (result == FAILURE && !EG(exception)) { zend_throw_exception_ex(NULL, 0 TSRMLS_CC, "%s::serialize() must return a string or NULL", ce->name); } return result;