Allow null callback to array_filter()

With same behavior as not passing it.
This commit is contained in:
Nikita Popov 2020-05-13 17:24:13 +02:00
parent 9122638ecd
commit 50a9f511cc
7 changed files with 22 additions and 7 deletions

View file

@ -1361,7 +1361,7 @@ PHP_METHOD(SQLite3, setAuthorizer)
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();
SQLITE3_CHECK_INITIALIZED(db_obj, db_obj->initialised, SQLite3)