Commit 2006d70
committed
fix: patch PHP 8.4.x opcache reset races (php/php-src#21778)
Bundles the EBR reset-safety patch from upstream PR #21778 as a
source-extract hook so tarball builds pick it up automatically. The
patch fixes zend_mm_heap corruption crashes triggered by
opcache_reset()/opcache_invalidate() racing concurrent readers under
ZTS (FrankenPHP) and FPM.
- src/globals/patch/php84_opcache_ebr_reset_safety.patch: verbatim
from PR #21778 commit e110a901 (NEWS hunk stripped for release
tarball compatibility)
- SourcePatcher::patchPhpOpcacheEbrResetSafety gated on 80400 <= ver
< 80500 with an idempotency probe against accel_try_complete_deferred_reset
Remove once the fix is merged and tagged into an 8.4.x release.1 parent d26a081 commit 2006d70
File tree
2 files changed
+643
-0
lines changed- src
- SPC/store
- globals/patch
2 files changed
+643
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
624 | 625 | | |
625 | 626 | | |
626 | 627 | | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
627 | 660 | | |
628 | 661 | | |
629 | 662 | | |
| |||
0 commit comments