Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > zval "passthrough"?
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 17th April 23:13
david.olsson
External User
 
Posts: 1
Default 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;
}
  Reply With Quote


  sponsored links


Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666