zval "passthrough"?
Hello
I'm writing a PHP extension in C++ which need to provide a function
which will take as a parameter a zval *. This zval * should, when the
function has completed its task, simply be returned unmodified. How do I
accomplish this? I've tried something like this:
PHP_FUNCTION(my_func) {
zval *v;
if(zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &v) == FAILURE) {
WRONG_PARAM_COUNT;
}
|