]> granicus.if.org Git - php/commitdiff
[skip ci] Add info on how to check for PHP NULL when using the ZPP callable check
authorGeorge Peter Banyard <girgias@php.net>
Wed, 8 Jul 2020 17:33:29 +0000 (19:33 +0200)
committerGeorge Peter Banyard <girgias@php.net>
Wed, 8 Jul 2020 17:38:35 +0000 (19:38 +0200)
docs/parameter-parsing-api.md

index 6bf035673b54f154f0f35edb5b4bad0f482957ad..2883c7014c0cfe1d418d3116a11b2d72741ee816 100644 (file)
@@ -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