File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -769,6 +769,18 @@ static zend_always_inline void zend_fcc_dtor(zend_fcall_info_cache *fcc)
769
769
770
770
ZEND_API void zend_get_callable_zval_from_fcc (const zend_fcall_info_cache * fcc , zval * callable );
771
771
772
+ /* Moved out of zend_gc.h because zend_fcall_info_cache is an unknown type in that header */
773
+ static zend_always_inline void zend_get_gc_buffer_add_fcc (zend_get_gc_buffer * gc_buffer , zend_fcall_info_cache * fcc )
774
+ {
775
+ ZEND_ASSERT (ZEND_FCC_INITIALIZED (* fcc ));
776
+ if (fcc -> object ) {
777
+ zend_get_gc_buffer_add_obj (gc_buffer , fcc -> object );
778
+ }
779
+ if (fcc -> closure ) {
780
+ zend_get_gc_buffer_add_obj (gc_buffer , fcc -> closure );
781
+ }
782
+ }
783
+
772
784
/* Can only return FAILURE if EG(active) is false during late engine shutdown.
773
785
* If the call or call setup throws, EG(exception) will be set and the retval
774
786
* will be UNDEF. Otherwise, the retval will be a non-UNDEF value. */
Original file line number Diff line number Diff line change @@ -127,17 +127,6 @@ static zend_always_inline void zend_get_gc_buffer_add_hashtable(zend_get_gc_buff
127
127
gc_buffer -> cur ++ ;
128
128
}
129
129
130
- static zend_always_inline void zend_get_gc_buffer_add_fcc (zend_get_gc_buffer * gc_buffer , zend_fcall_info_cache * fcc )
131
- {
132
- ZEND_ASSERT (ZEND_FCC_INITIALIZED (* fcc ));
133
- if (fcc -> object ) {
134
- zend_get_gc_buffer_add_obj (gc_buffer , fcc -> object );
135
- }
136
- if (fcc -> closure ) {
137
- zend_get_gc_buffer_add_obj (gc_buffer , fcc -> closure );
138
- }
139
- }
140
-
141
130
static zend_always_inline void zend_get_gc_buffer_use (
142
131
zend_get_gc_buffer * gc_buffer , zval * * table , int * n ) {
143
132
* table = gc_buffer -> start ;
You can’t perform that action at this time.
0 commit comments