From 51917241e440d21b282546d6c59a6502ca5fff43 Mon Sep 17 00:00:00 2001 From: George Peter Banyard Date: Wed, 8 Jul 2020 19:33:29 +0200 Subject: [skip ci] Add info on how to check for PHP NULL when using the ZPP callable check --- docs/parameter-parsing-api.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs') diff --git a/docs/parameter-parsing-api.md b/docs/parameter-parsing-api.md index 6bf035673b..2883c7014c 100644 --- a/docs/parameter-parsing-api.md +++ b/docs/parameter-parsing-api.md @@ -100,6 +100,9 @@ The following characters also have a meaning in the specifier string: zend_bool* must be passed after the corresponding bool*, zend_long* or double* arguments, respectively. A non-zero value will be written to the zend_bool if a PHP NULL is passed. + For `f` use the ``ZEND_FCI_INITIALIZED(fci)`` macro to check if a callable + has been provided and ``!ZEND_FCI_INITIALIZED(fci)`` to check if a PHP NULL + is passed. ## Note on 64bit compatibility -- cgit v1.2.1