title: How to get return value from zend_eval_string in php extension?
body: <p>I'm trying to write an extension for PHP and i need to execute some PHP code.</p>
  
  <p>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.</p>
  
  <p>for example the code is : "return array(...);"
  I need to execute the code and get the returned array.</p>
  
  <p>I already tried this but it wont help</p>
  
  <pre><code>zval retval;
  zend_eval_string(code, &amp;retval, "" TSRMLS_CC);
  </code></pre>