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)
197197#endif
198198}
199199
200- void zend_async_shutdown (void )
200+ void zend_async_api_shutdown (void )
201201{
202- zend_async_globals_dtor ();
203202 zend_async_internal_context_api_shutdown ();
204203 zend_async_main_handlers_shutdown ();
204+ #ifndef ZTS
205+ zend_async_globals_dtor ();
206+ #endif
205207}
206208
207209ZEND_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);
11111111ZEND_API bool zend_scheduler_is_enabled (void );
11121112
11131113void zend_async_init (void );
1114- void zend_async_shutdown (void );
1114+ void zend_async_api_shutdown (void );
11151115void zend_async_globals_ctor (void );
11161116void zend_async_globals_dtor (void );
11171117
Original file line number Diff line number Diff line change @@ -2515,12 +2515,13 @@ void php_module_shutdown(void)
25152515
25162516 module_initialized = false;
25172517
2518+ #ifdef PHP_ASYNC_API
2519+ zend_async_api_shutdown ();
2520+ #endif
2521+
25182522#ifndef ZTS
25192523 core_globals_dtor (& core_globals );
25202524 gc_globals_dtor ();
2521- #ifdef PHP_ASYNC_API
2522- zend_async_globals_dtor ();
2523- #endif
25242525#else
25252526 ts_free_id (core_globals_id );
25262527#endif
You can’t perform that action at this time.
0 commit comments