Skip to content

Commit 5191724

Browse files
committed
[skip ci] Add info on how to check for PHP NULL when using the ZPP callable check
1 parent b4dc890 commit 5191724

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/parameter-parsing-api.md

+3
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ The following characters also have a meaning in the specifier string:
100100
zend_bool* must be passed after the corresponding bool*, zend_long* or
101101
double* arguments, respectively. A non-zero value will be written to the
102102
zend_bool if a PHP NULL is passed.
103+
For `f` use the ``ZEND_FCI_INITIALIZED(fci)`` macro to check if a callable
104+
has been provided and ``!ZEND_FCI_INITIALIZED(fci)`` to check if a PHP NULL
105+
is passed.
103106

104107
## Note on 64bit compatibility
105108

0 commit comments

Comments
 (0)