summaryrefslogtreecommitdiff
path: root/ext/libxml
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-01-03 12:11:45 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-01-03 13:23:37 +0100
commit8f4f1dea34e255eff8ff4d13960d287d809665a6 (patch)
tree54e2758a94191c910cf12bc5cd2b1409568ce51c /ext/libxml
parentb7d2882fee4e9c32c42c0fe057a3fdc41e100a06 (diff)
downloadphp-git-8f4f1dea34e255eff8ff4d13960d287d809665a6.tar.gz
Convert zend_parse_parameters_none() to fast ZPP
I've done the conversion in those extensions where fast ZPP is predominant.
Diffstat (limited to 'ext/libxml')
-rw-r--r--ext/libxml/libxml.c12
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)) {