summaryrefslogtreecommitdiff
path: root/ext/soap
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-05-15 18:17:49 +0400
committerDmitry Stogov <dmitry@zend.com>2014-05-15 18:17:49 +0400
commitfba70c836294b33e1403b06a1c75746c78bb9b61 (patch)
tree4c654ee68c984e983db67c74c97831add893cfd4 /ext/soap
parent3610c5cf02d011c10beabeeabb38b39e6c00d872 (diff)
downloadphp-git-fba70c836294b33e1403b06a1c75746c78bb9b61.tar.gz
check for EG(excepton)
Diffstat (limited to 'ext/soap')
-rw-r--r--ext/soap/php_encoding.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/soap/php_encoding.c b/ext/soap/php_encoding.c
index 5b4ed232d1..29ca2ab41d 100644
--- a/ext/soap/php_encoding.c
+++ b/ext/soap/php_encoding.c
@@ -642,11 +642,11 @@ zval *to_zval_user(zval *ret, encodeTypePtr type, xmlNodePtr node TSRMLS_DC)
ZVAL_STRING(&data, (char*)xmlBufferContent(buf));
xmlBufferFree(buf);
xmlFreeNode(copy);
-
- ZVAL_NULL(ret);
if (call_user_function(EG(function_table), NULL, &type->map->to_zval, ret, 1, &data TSRMLS_CC) == FAILURE) {
soap_error0(E_ERROR, "Encoding: Error calling from_xml callback");
+ } else if (EG(exception)) {
+ ZVAL_NULL(ret);
}
zval_ptr_dtor(&data);
} else {