Parsing Parameters
Hacking the PHP Source
2024-11-23
9
In its simplest form you can call
ZEND_NUM_ARGS()
to check the number of parameters passed to your function.
You can use the
WRONG_PARAM_COUNT
macro to output a generic wrong parameter count warning.