summaryrefslogtreecommitdiff
path: root/ext/libxml
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-05-13 17:24:13 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-05-13 17:24:13 +0200
commit50a9f511ccc8946551f8dcb573476e075dce330c (patch)
tree60df77807a67e6582bedad04af1f60b9f2843646 /ext/libxml
parent9122638ecd7dfee1cbd141a15a8d59bfc47f6ab3 (diff)
downloadphp-git-50a9f511ccc8946551f8dcb573476e075dce330c.tar.gz
Allow null callback to array_filter()
With same behavior as not passing it.
Diffstat (limited to 'ext/libxml')
-rw-r--r--ext/libxml/libxml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c
index febc5eca2d..09f8ae83ed 100644
--- a/ext/libxml/libxml.c
+++ b/ext/libxml/libxml.c
@@ -1067,7 +1067,7 @@ PHP_FUNCTION(libxml_set_external_entity_loader)
zend_fcall_info_cache fcc;
ZEND_PARSE_PARAMETERS_START(1, 1)
- Z_PARAM_FUNC_EX(fci, fcc, 1, 0)
+ Z_PARAM_FUNC_OR_NULL(fci, fcc)
ZEND_PARSE_PARAMETERS_END();
_php_libxml_destroy_fci(&LIBXML(entity_loader).fci, &LIBXML(entity_loader).object);