diff --git a/profiling/src/timeline.rs b/profiling/src/timeline.rs index 5a26be7a78..81a90a2a31 100644 --- a/profiling/src/timeline.rs +++ b/profiling/src/timeline.rs @@ -542,6 +542,13 @@ pub(crate) fn timeline_mshutdown() { } } + #[cfg(php_opcache_restart_hook)] + { + unsafe { + zend::zend_accel_schedule_restart_hook = PREV_ZEND_ACCEL_SCHEDULE_RESTART_HOOK; + } + } + #[cfg(php_zts)] timeline_gshutdown(); }