Convert zend_parse_parameters_none() to fast ZPP

I've done the conversion in those extensions where fast ZPP is predominant.
This commit is contained in:
Máté Kocsis 2020-01-03 12:11:45 +01:00
parent b7d2882fee
commit 8f4f1dea34
No known key found for this signature in database
GPG key ID: FD055E41728BF310
9 changed files with 60 additions and 130 deletions

View file

@ -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)) {