Skip to content

Commit e4dfda5

Browse files
committed
Reorder struct _zend_generator to avoid a hole
1 parent e988e4d commit e4dfda5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Zend/zend_generators.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,12 @@ struct _zend_generator {
8686
/* Fake execute_data for stacktraces */
8787
zend_execute_data execute_fake;
8888

89+
/* The underlying function, equivalent to execute_data->func while
90+
* the generator is alive. */
91+
zend_function *func;
92+
8993
/* ZEND_GENERATOR_* flags */
9094
uint8_t flags;
91-
92-
zend_function *func;
9395
};
9496

9597
static const uint8_t ZEND_GENERATOR_CURRENTLY_RUNNING = 0x1;

0 commit comments

Comments
 (0)