Skip to content

Commit f1182d0

Browse files
committed
fix review
1 parent aec1f1b commit f1182d0

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

Zend/zend.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -825,14 +825,6 @@ static void zend_new_thread_end_handler(THREAD_T thread_id) /* {{{ */
825825
zend_timer_init();
826826
}
827827
/* }}} */
828-
829-
static void zend_thread_shutdown_handler(void) { /* {{{ */
830-
zend_interned_strings_dtor();
831-
#ifdef ZEND_TIMERS
832-
zend_timer_shutdown();
833-
#endif
834-
}
835-
/* }}} */
836828
#endif
837829

838830
#if defined(__FreeBSD__) || defined(__DragonFly__)
@@ -1036,7 +1028,7 @@ void zend_startup(zend_utility_functions *utility_functions) /* {{{ */
10361028

10371029
#ifdef ZTS
10381030
tsrm_set_new_thread_end_handler(zend_new_thread_end_handler);
1039-
tsrm_set_shutdown_handler(zend_thread_shutdown_handler);
1031+
tsrm_set_shutdown_handler(zend_interned_strings_dtor);
10401032
#endif
10411033
}
10421034
/* }}} */

Zend/zend_execute_API.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ void shutdown_executor(void) /* {{{ */
407407
zend_shutdown_executor_values(fast_shutdown);
408408

409409
zend_weakrefs_shutdown();
410+
zend_timer_shutdown();
410411
zend_fiber_shutdown();
411412

412413
zend_try {

0 commit comments

Comments
 (0)