optimizer return var

var my_reference (zval *var) {
    return &var
}

I want to return array's reference.

How I can do.

As far as i know there is no reference support. You would need to some inline C code for this, there were it somwhere on forum.



4.5k

for example: if I want to return "zval *" in the optimizer.

zval * function test( zval * p1)
{
    return &p1;
}

how I can return CompiledExpression. return new CompiledExpression('variable', 'test(' . $resolvedParams[0] . ')', $expression);

And you putted this code into %{ }% ?