]> granicus.if.org Git - php/commitdiff
Fix accidental zval_dtor() usage
authorBob Weinand <bobwei9@hotmail.com>
Thu, 7 Jan 2016 14:12:35 +0000 (15:12 +0100)
committerBob Weinand <bobwei9@hotmail.com>
Thu, 7 Jan 2016 14:12:50 +0000 (15:12 +0100)
Zend/zend_generators.c

index 09cbb9a5ee21d885ea26beefb1ecdfb05fd5c480..4861e459195269642c7c8093c7ba910d09703aa3 100644 (file)
@@ -512,7 +512,7 @@ ZEND_API zend_generator *zend_generator_update_current(zend_generator *generator
 
                                                EG(current_execute_data) = original_execute_data;
                                        } else {
-                                               zval_dtor(&root->value);
+                                               zval_ptr_dtor(&root->value);
                                                ZVAL_COPY(&root->value, &root->node.parent->value);
                                                ZVAL_COPY(ZEND_CALL_VAR(root->execute_data, yield_from->result.var), &root->node.parent->retval);
                                        }