diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2020-05-13 17:24:13 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-05-13 17:24:13 +0200 |
| commit | 50a9f511ccc8946551f8dcb573476e075dce330c (patch) | |
| tree | 60df77807a67e6582bedad04af1f60b9f2843646 /Zend/zend_API.h | |
| parent | 9122638ecd7dfee1cbd141a15a8d59bfc47f6ab3 (diff) | |
| download | php-git-50a9f511ccc8946551f8dcb573476e075dce330c.tar.gz | |
Allow null callback to array_filter()
With same behavior as not passing it.
Diffstat (limited to 'Zend/zend_API.h')
| -rw-r--r-- | Zend/zend_API.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Zend/zend_API.h b/Zend/zend_API.h index c355456892..3943f691bf 100644 --- a/Zend/zend_API.h +++ b/Zend/zend_API.h @@ -1380,6 +1380,9 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_argument_value_error(uint32_t arg_num #define Z_PARAM_FUNC(dest_fci, dest_fcc) \ Z_PARAM_FUNC_EX(dest_fci, dest_fcc, 0, 0) +#define Z_PARAM_FUNC_OR_NULL(dest_fci, dest_fcc) \ + Z_PARAM_FUNC_EX(dest_fci, dest_fcc, 1, 0) + /* old "h" */ #define Z_PARAM_ARRAY_HT_EX2(dest, check_null, deref, separate) \ Z_PARAM_PROLOGUE(deref, separate); \ |
