summaryrefslogtreecommitdiff
path: root/ext/libxml/libxml.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/libxml/libxml.c')
-rw-r--r--ext/libxml/libxml.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c
index e330022eeb..4564b44c66 100644
--- a/ext/libxml/libxml.c
+++ b/ext/libxml/libxml.c
@@ -980,7 +980,7 @@ static PHP_FUNCTION(libxml_get_last_error)
xmlErrorPtr error;
if (zend_parse_parameters_none() == FAILURE) {
- return;
+ RETURN_THROWS();
}
error = xmlGetLastError();
@@ -1015,7 +1015,7 @@ static PHP_FUNCTION(libxml_get_errors)
xmlErrorPtr error;
if (zend_parse_parameters_none() == FAILURE) {
- return;
+ RETURN_THROWS();
}
if (LIBXML(error_list)) {
@@ -1056,7 +1056,7 @@ static PHP_FUNCTION(libxml_get_errors)
static PHP_FUNCTION(libxml_clear_errors)
{
if (zend_parse_parameters_none() == FAILURE) {
- return;
+ RETURN_THROWS();
}
xmlResetLastError();