summaryrefslogtreecommitdiff
path: root/ext/libxml
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2019-09-22 18:19:37 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2019-09-22 19:14:31 +0200
commit9fa65eed2c0120a7fb313259f453fd1dd0cd019a (patch)
treef8e71e318d373ce9c874ace7154987b739bbc1ef /ext/libxml
parentac282a90f171431369fd508502665365b57d406c (diff)
downloadphp-git-9fa65eed2c0120a7fb313259f453fd1dd0cd019a.tar.gz
Add missing zend_parse_parameters_none()
Diffstat (limited to 'ext/libxml')
-rw-r--r--ext/libxml/libxml.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c
index efccf0a407..763726e3b3 100644
--- a/ext/libxml/libxml.c
+++ b/ext/libxml/libxml.c
@@ -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));