I'm trying to write an extension for PHP and i need to execute some PHP code.
After searching i figured out that i could use "zend_eval_string" in my c extension. my problem is that i need the return value from the code that executed by this function.
for example the code is : "return array(...);" I need to execute the code and get the returned array.
I already tried this but it wont help
zval retval;
zend_eval_string(code, &retval, "" TSRMLS_CC);