zval **parameter; if((ZEND_NUM_ARGS() != 1) _BAR_ _BAR_ (zend_get_parameters_ex(1, parameter) != SUCCESS)) {WRONG_PARAM_COUNT;} convert_to_long_ex(parameter); RETURN_LONG(Z_LVAL_P(parameter));
Following is a quote from the sample module discussed previously, which makes use of the conversion functions: