Permalink
Browse files

- fix build, declarations must be 1st in a contextgit checkout -f master

  • Loading branch information...
1 parent bceec03 commit 4a7d1b4ed8987188c3a628601ad9a027bf88b7eb @pierrejoye pierrejoye committed Sep 5, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 Zend/zend_generators.c
View
@@ -363,6 +363,9 @@ zval *zend_generator_create_zval(zend_op_array *op_array TSRMLS_DC) /* {{{ */
{
zval *return_value;
zend_generator *generator;
+ zend_execute_data *current_execute_data;
+ zend_op **opline_ptr;
+ zend_execute_data *execute_data;
/* Create a clone of closure, because it may be destroyed */
if (op_array->fn_flags & ZEND_ACC_CLOSURE) {
@@ -375,9 +378,9 @@ zval *zend_generator_create_zval(zend_op_array *op_array TSRMLS_DC) /* {{{ */
/* Create new execution context. We have to back up and restore
* EG(current_execute_data) and EG(opline_ptr) here because the function
* modifies it. */
- zend_execute_data *current_execute_data = EG(current_execute_data);
- zend_op **opline_ptr = EG(opline_ptr);
- zend_execute_data *execute_data = zend_create_execute_data_from_op_array(op_array, 0 TSRMLS_CC);
+ current_execute_data = EG(current_execute_data);
+ opline_ptr = EG(opline_ptr);
+ execute_data = zend_create_execute_data_from_op_array(op_array, 0 TSRMLS_CC);
EG(current_execute_data) = current_execute_data;
EG(opline_ptr) = opline_ptr;

0 comments on commit 4a7d1b4

Please sign in to comment.