diff options
Diffstat (limited to 'ext/libxml/libxml.c')
-rw-r--r-- | ext/libxml/libxml.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c index 4564b44c66..01dc753c7e 100644 --- a/ext/libxml/libxml.c +++ b/ext/libxml/libxml.c @@ -979,9 +979,7 @@ static PHP_FUNCTION(libxml_get_last_error) { xmlErrorPtr error; - if (zend_parse_parameters_none() == FAILURE) { - RETURN_THROWS(); - } + ZEND_PARSE_PARAMETERS_NONE(); error = xmlGetLastError(); @@ -1014,9 +1012,7 @@ static PHP_FUNCTION(libxml_get_errors) xmlErrorPtr error; - if (zend_parse_parameters_none() == FAILURE) { - RETURN_THROWS(); - } + ZEND_PARSE_PARAMETERS_NONE(); if (LIBXML(error_list)) { @@ -1055,9 +1051,7 @@ static PHP_FUNCTION(libxml_get_errors) Clear last error from libxml */ static PHP_FUNCTION(libxml_clear_errors) { - if (zend_parse_parameters_none() == FAILURE) { - RETURN_THROWS(); - } + ZEND_PARSE_PARAMETERS_NONE(); xmlResetLastError(); if (LIBXML(error_list)) { |