mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
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:
parent
b7d2882fee
commit
8f4f1dea34
9 changed files with 60 additions and 130 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue