summaryrefslogtreecommitdiff
path: root/ext/dom/documentfragment.c
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2019-12-30 18:14:29 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2019-12-31 00:21:37 +0100
commit2f7309b1e9d36fa6e061394f84c73c30a29a88a6 (patch)
tree0d89427ec0509fb5ea8a303d8e946100d79290ca /ext/dom/documentfragment.c
parent76c45f35f55b50cfb4fc581d3358998b25e5531e (diff)
downloadphp-git-2f7309b1e9d36fa6e061394f84c73c30a29a88a6.tar.gz
Use RETURN_THROWS() during ZPP in the date, dba and dom extensions
Diffstat (limited to 'ext/dom/documentfragment.c')
-rw-r--r--ext/dom/documentfragment.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/dom/documentfragment.c b/ext/dom/documentfragment.c
index f92025589c..d0f44a7d8f 100644
--- a/ext/dom/documentfragment.c
+++ b/ext/dom/documentfragment.c
@@ -43,8 +43,8 @@ PHP_METHOD(domdocumentfragment, __construct)
xmlNodePtr nodep = NULL, oldnode = NULL;
dom_object *intern;
- if (zend_parse_parameters_none_throw() == FAILURE) {
- return;
+ if (zend_parse_parameters_none() == FAILURE) {
+ RETURN_THROWS();
}
nodep = xmlNewDocFragment(NULL);
@@ -110,7 +110,7 @@ PHP_METHOD(domdocumentfragment, appendXML) {
id = ZEND_THIS;
if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &data, &data_len) == FAILURE) {
- return;
+ RETURN_THROWS();
}
DOM_GET_OBJ(nodep, id, xmlNodePtr, intern);