diff options
| author | Pierre Joye <pierre.php@gmail.com> | 2012-09-05 12:53:29 +0200 |
|---|---|---|
| committer | Pierre Joye <pierre.php@gmail.com> | 2012-09-05 12:53:29 +0200 |
| commit | 4a7d1b4ed8987188c3a628601ad9a027bf88b7eb (patch) | |
| tree | 00beb1399207133fc8c652aeed39a43831418396 /Zend/zend_generators.c | |
| parent | bceec038c833d830a3f37d4eb14a778104eb2766 (diff) | |
| download | php-git-4a7d1b4ed8987188c3a628601ad9a027bf88b7eb.tar.gz | |
- fix build, declarations must be 1st in a contextgit checkout -f master
Diffstat (limited to 'Zend/zend_generators.c')
| -rw-r--r-- | Zend/zend_generators.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Zend/zend_generators.c b/Zend/zend_generators.c index 3d4fdd2c5f..83025eacd1 100644 --- a/Zend/zend_generators.c +++ b/Zend/zend_generators.c @@ -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; |
