Skip to content

Commit 5c9fffc

Browse files
fix(profiling): restore OPcache restart hook on shutdown (#4076)
1 parent 24c4207 commit 5c9fffc

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

profiling/src/timeline.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,13 @@ pub(crate) fn timeline_mshutdown() {
542542
}
543543
}
544544

545+
#[cfg(php_opcache_restart_hook)]
546+
{
547+
unsafe {
548+
zend::zend_accel_schedule_restart_hook = PREV_ZEND_ACCEL_SCHEDULE_RESTART_HOOK;
549+
}
550+
}
551+
545552
#[cfg(php_zts)]
546553
timeline_gshutdown();
547554
}

0 commit comments

Comments
 (0)