From 26ca36858b8b3949972ecd56f3a80e03e6da19d0 Mon Sep 17 00:00:00 2001 From: Malek Kadri <93520204+malekkadri@users.noreply.github.com> Date: Tue, 24 Nov 2026 19:19:34 +0100 Subject: [PATCH 1/2] Restore forced inlining of XXH128_canonicalFromHash for PGO --- ext/hash/xxhash/xxhash.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/hash/xxhash/xxhash.h b/ext/hash/xxhash/xxhash.h index a18e8c762daa..d4d01a5439eb 100644 --- a/ext/hash/xxhash/xxhash.h +++ b/ext/hash/xxhash/xxhash.h @@ -1384,7 +1384,7 @@ typedef struct { unsigned char digest[sizeof(XXH128_hash_t)]; } XXH128_canonical * @pre * @p dst must not be `NULL`. */ -XXH_PUBLIC_API void XXH128_canonicalFromHash(XXH_NOESCAPE XXH128_canonical_t* dst, XXH128_hash_t hash); +static zend_always_inline void XXH128_canonicalFromHash(XXH_NOESCAPE XXH128_canonical_t* dst, XXH128_hash_t hash); /*! * @brief Converts an @ref XXH128_canonical_t to a native @ref XXH128_hash_t. @@ -6658,7 +6658,7 @@ XXH_PUBLIC_API int XXH128_cmp(XXH_NOESCAPE const void* h128_1, XXH_NOESCAPE cons /*====== Canonical representation ======*/ /*! @ingroup XXH3_family */ -XXH_PUBLIC_API void +static zend_always_inline void XXH128_canonicalFromHash(XXH_NOESCAPE XXH128_canonical_t* dst, XXH128_hash_t hash) { XXH_STATIC_ASSERT(sizeof(XXH128_canonical_t) == sizeof(XXH128_hash_t)); From 04b6cbe88afbdd8cac1a61f12f07f820c304f25e Mon Sep 17 00:00:00 2001 From: Malek Kadri <93520204+malekkadri@users.noreply.github.com> Date: Tue, 24 Nov 2026 19:19:41 +0100 Subject: [PATCH 2/2] Add NEWS entry for GH-25621 --- NEWS | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NEWS b/NEWS index 9ff52d626ae0..f2ad0f07d42f 100644 --- a/NEWS +++ b/NEWS @@ -81,6 +81,10 @@ PHP NEWS . Fixed bug GH-25584 (JIT frees the string returned by gettext(), dgettext() or dcgettext() while it is still in use). (Ilia Alshanetsky) +- Hash: + . Fixed bug GH-25621 (PGO build failure with xxHash 0.8.2 and GCC 16). + (malekkadri) + - Intl: . Fixed NumberFormatter::getSymbol(), setSymbol(), getAttribute() and setAttribute() accepting out-of-range values that truncate to a valid one.