From: George Peter Banyard Date: Wed, 8 Jul 2020 17:33:29 +0000 (+0200) Subject: [skip ci] Add info on how to check for PHP NULL when using the ZPP callable check X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51917241e440d21b282546d6c59a6502ca5fff43;p=php [skip ci] Add info on how to check for PHP NULL when using the ZPP callable check --- 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