Add support for executing a zend_execute_data

This adds another function execute_ex(), which accepts a zend_execute_data
struct to run (contrary to execute(), which accepts a zend_op_array from
which it initialized the execute_data).

This needs a bit more cleanup.
This commit is contained in:
Nikita Popov 2012-05-26 17:53:13 +02:00
parent ececcbce0e
commit f627be5254
6 changed files with 132 additions and 68 deletions

View file

@ -32,6 +32,8 @@ typedef struct _zend_generator {
/* The suspended execution context. */
zend_execute_data *execute_data;
/* Current value */
zval *value;
} zend_generator;
END_EXTERN_C()