Commit 9a11b35a16f for php

commit 9a11b35a16fd243b41c07064cfb169a0c6f17187
Merge: c17a8bcf807 873a997d707
Author: David Carlier <devnexen@gmail.com>
Date:   Mon Sep 28 15:18:40 2026 +0100

    Merge branch 'PHP-8.4' into PHP-8.5

    * PHP-8.4:
      Fix GH-23637: opcache inheritance cache entry published too early

diff --cc ext/opcache/ZendAccelerator.c
index 951d042767d,79c7668ba5e..4a543999bee
--- a/ext/opcache/ZendAccelerator.c
+++ b/ext/opcache/ZendAccelerator.c
@@@ -2478,9 -2462,13 +2482,10 @@@ static zend_class_entry* zend_accel_inh
  	entry->num_warnings = EG(num_errors);
  	entry->warnings = zend_persist_warnings(EG(num_errors), EG(errors));
  	entry->next = proto->inheritance_cache;
- 	proto->inheritance_cache = entry;

 -	EG(num_errors) = 0;
 -	EG(errors) = NULL;
 -
  	ZCSG(map_ptr_last) = CG(map_ptr_last);
+ 	ZEND_ATOMIC_FENCE_RELEASE();
+ 	proto->inheritance_cache = entry;

  	zend_shared_alloc_destroy_xlat_table();