]> granicus.if.org Git - php/commitdiff
- fix build, declarations must be 1st in a contextgit checkout -f master
authorPierre Joye <pierre.php@gmail.com>
Wed, 5 Sep 2012 10:53:29 +0000 (12:53 +0200)
committerPierre Joye <pierre.php@gmail.com>
Wed, 5 Sep 2012 10:53:29 +0000 (12:53 +0200)
Zend/zend_generators.c

index 3d4fdd2c5ff1c95b50dc2d8c48a25ed52a06a921..83025eacd161f978a1befd27d2071b6a46af3777 100644 (file)
@@ -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;