File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -197,11 +197,13 @@ void zend_async_globals_dtor(void)
197
197
#endif
198
198
}
199
199
200
- void zend_async_shutdown (void )
200
+ void zend_async_api_shutdown (void )
201
201
{
202
- zend_async_globals_dtor ();
203
202
zend_async_internal_context_api_shutdown ();
204
203
zend_async_main_handlers_shutdown ();
204
+ #ifndef ZTS
205
+ zend_async_globals_dtor ();
206
+ #endif
205
207
}
206
208
207
209
ZEND_API int zend_async_get_api_version_number (void )
Original file line number Diff line number Diff line change @@ -1111,7 +1111,7 @@ ZEND_API bool zend_async_is_enabled(void);
1111
1111
ZEND_API bool zend_scheduler_is_enabled (void );
1112
1112
1113
1113
void zend_async_init (void );
1114
- void zend_async_shutdown (void );
1114
+ void zend_async_api_shutdown (void );
1115
1115
void zend_async_globals_ctor (void );
1116
1116
void zend_async_globals_dtor (void );
1117
1117
Original file line number Diff line number Diff line change @@ -2515,12 +2515,13 @@ void php_module_shutdown(void)
2515
2515
2516
2516
module_initialized = false;
2517
2517
2518
+ #ifdef PHP_ASYNC_API
2519
+ zend_async_api_shutdown ();
2520
+ #endif
2521
+
2518
2522
#ifndef ZTS
2519
2523
core_globals_dtor (& core_globals );
2520
2524
gc_globals_dtor ();
2521
- #ifdef PHP_ASYNC_API
2522
- zend_async_globals_dtor ();
2523
- #endif
2524
2525
#else
2525
2526
ts_free_id (core_globals_id );
2526
2527
#endif
You can’t perform that action at this time.
0 commit comments