mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Add missing zend_parse_parameters_none()
This commit is contained in:
parent
ac282a90f1
commit
9fa65eed2c
1 changed files with 12 additions and 0 deletions
|
@ -1003,6 +1003,10 @@ static PHP_FUNCTION(libxml_get_last_error)
|
|||
{
|
||||
xmlErrorPtr error;
|
||||
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
return;
|
||||
}
|
||||
|
||||
error = xmlGetLastError();
|
||||
|
||||
if (error) {
|
||||
|
@ -1034,6 +1038,10 @@ static PHP_FUNCTION(libxml_get_errors)
|
|||
|
||||
xmlErrorPtr error;
|
||||
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (LIBXML(error_list)) {
|
||||
|
||||
array_init(return_value);
|
||||
|
@ -1071,6 +1079,10 @@ static PHP_FUNCTION(libxml_get_errors)
|
|||
Clear last error from libxml */
|
||||
static PHP_FUNCTION(libxml_clear_errors)
|
||||
{
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
return;
|
||||
}
|
||||
|
||||
xmlResetLastError();
|
||||
if (LIBXML(error_list)) {
|
||||
zend_llist_clean(LIBXML(error_list));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue