summaryrefslogtreecommitdiff
path: root/ext/dom/processinginstruction.c
diff options
context:
space:
mode:
authorGeorge Peter Banyard <girgias@php.net>2020-04-19 14:35:25 +0200
committerGeorge Peter Banyard <girgias@php.net>2020-09-22 19:12:32 +0100
commit8fef83dd3ceb6105f40ab4b0748a5360f1d6adf2 (patch)
tree6b2fada2d993754e8231442ba8428ab87e49870b /ext/dom/processinginstruction.c
parent82e14ff8e77cf818e3727b2efa46c0fc4e9db0dc (diff)
downloadphp-git-8fef83dd3ceb6105f40ab4b0748a5360f1d6adf2.tar.gz
Promote warnings to error in DOM extension
Closes GH-5418
Diffstat (limited to 'ext/dom/processinginstruction.c')
-rw-r--r--ext/dom/processinginstruction.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dom/processinginstruction.c b/ext/dom/processinginstruction.c
index 9255213e71..73367442eb 100644
--- a/ext/dom/processinginstruction.c
+++ b/ext/dom/processinginstruction.c
@@ -46,14 +46,14 @@ PHP_METHOD(DOMProcessingInstruction, __construct)
name_valid = xmlValidateName((xmlChar *) name, 0);
if (name_valid != 0) {
php_dom_throw_error(INVALID_CHARACTER_ERR, 1);
- RETURN_FALSE;
+ RETURN_THROWS();
}
nodep = xmlNewPI((xmlChar *) name, (xmlChar *) value);
if (!nodep) {
php_dom_throw_error(INVALID_STATE_ERR, 1);
- RETURN_FALSE;
+ RETURN_THROWS();
}
intern = Z_DOMOBJ_P(ZEND_THIS);