Add missing zend_parse_parameters_none()

This commit is contained in:
Christoph M. Becker 2019-09-22 18:19:37 +02:00
parent ac282a90f1
commit 9fa65eed2c

View File

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