[php-src] PHP-8.6: Merge branch 'PHP-8.5' into PHP-8.6

From: Date: Fri, 16 Oct 2026 17:23:02 +0000
Subject: [php-src] PHP-8.6: Merge branch 'PHP-8.5' into PHP-8.6
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-142359@lists.php.net to get a copy of this message
Author: Arnaud Le Blanc (arnaud-lb) Date: 2026-10-16T19:22:37+02:00 Commit: https://github.com/php/php-src/commit/6a663a5a3304b1a6d2a1b8dfba7923532d3e283e Raw diff: https://github.com/php/php-src/commit/6a663a5a3304b1a6d2a1b8dfba7923532d3e283e.diff Merge branch 'PHP-8.5' into PHP-8.6 * PHP-8.5: JIT: Fix TLS access with SHM reattachment (#24355) Changed paths: M NEWS M ext/opcache/jit/zend_jit_ir.c Diff: diff --git a/NEWS b/NEWS index af3c2b955209..26d470adbc6b 100644 --- a/NEWS +++ b/NEWS @@ -56,6 +56,8 @@ PHP NEWS in closures). (RV7PR) . Fixed bug GH-24337 (JIT: segfault when decrementing a non-numeric string property). (Lazizbek Ergashev) + . Fixed bug GH-24185 (Windows ZTS: random access violations with OPcache JIT + in multi-process setups). (Arnaud, ndossche) - PDO: . Fixed a duplicate warning when ATTR_STATEMENT_CLASS is rejected on a diff --git a/ext/opcache/jit/zend_jit_ir.c b/ext/opcache/jit/zend_jit_ir.c index 6a3f0382926c..63f6322e161d 100644 --- a/ext/opcache/jit/zend_jit_ir.c +++ b/ext/opcache/jit/zend_jit_ir.c @@ -3432,6 +3432,10 @@ static void zend_jit_setup(bool reattached) #endif #ifdef ZTS +# ifdef ZEND_OPCACHE_SHM_REATTACHMENT + /* Different processes may load TLS variables in a different order, so we + * can not rely on offsets. We will fallback to runtime resolution. */ +# else zend_result result = zend_jit_resolve_tsrm_ls_cache_offsets( &tsrm_ls_cache_tcb_offset, &tsrm_tls_index, @@ -3441,6 +3445,7 @@ static void zend_jit_setup(bool reattached) zend_accel_error(ACCEL_LOG_INFO, "Could not get _tsrm_ls_cache offsets, will fallback to runtime resolution"); } +# endif #endif #if !defined(ZEND_WIN32) && !defined(IR_TARGET_AARCH64)

« previous php.cvs (#142359) next »