From d1fd7f187d2d85a3d50dc51a16794a607ed3d675 Mon Sep 17 00:00:00 2001 From: Florian Engelhardt Date: Wed, 29 Jul 2026 08:28:08 +0200 Subject: [PATCH] fix(profiling): restore OPcache restart hook on shutdown --- profiling/src/timeline.rs | 7 +++++++ 1 file changed, 7 insertions(+) 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(); }