mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.3' into PHP-8.4
* PHP-8.3: Fix GH-14551: PGO build fails with xxhash
This commit is contained in:
3
NEWS
3
NEWS
@@ -29,6 +29,9 @@ PHP NEWS
|
||||
- FPM:
|
||||
. Fixed GH-18662 (fpm_get_status segfault). (txuna)
|
||||
|
||||
- Hash:
|
||||
. Fixed bug GH-14551 (PGO build fails with xxhash). (nielsdos)
|
||||
|
||||
- Intl:
|
||||
. Fix memory leak in intl_datetime_decompose() on failure. (nielsdos)
|
||||
. Fix memory leak in locale lookup on failure. (nielsdos)
|
||||
|
||||
@@ -158,7 +158,7 @@ const php_hash_ops php_hash_xxh3_64_ops = {
|
||||
typedef XXH_errorcode (*xxh3_reset_with_secret_func_t)(XXH3_state_t*, const void*, size_t);
|
||||
typedef XXH_errorcode (*xxh3_reset_with_seed_func_t)(XXH3_state_t*, XXH64_hash_t);
|
||||
|
||||
zend_always_inline static void _PHP_XXH3_Init(PHP_XXH3_64_CTX *ctx, HashTable *args,
|
||||
static void _PHP_XXH3_Init(PHP_XXH3_64_CTX *ctx, HashTable *args,
|
||||
xxh3_reset_with_seed_func_t func_init_seed, xxh3_reset_with_secret_func_t func_init_secret, const char* algo_name)
|
||||
{
|
||||
memset(&ctx->s, 0, sizeof ctx->s);
|
||||
|
||||
@@ -931,7 +931,7 @@ XXH_PUBLIC_API int XXH128_cmp(const void* h128_1, const void* h128_2);
|
||||
|
||||
/******* Canonical representation *******/
|
||||
typedef struct { unsigned char digest[sizeof(XXH128_hash_t)]; } XXH128_canonical_t;
|
||||
XXH_PUBLIC_API void XXH128_canonicalFromHash(XXH128_canonical_t* dst, XXH128_hash_t hash);
|
||||
static zend_always_inline void XXH128_canonicalFromHash(XXH128_canonical_t* dst, XXH128_hash_t hash);
|
||||
XXH_PUBLIC_API XXH128_hash_t XXH128_hashFromCanonical(const XXH128_canonical_t* src);
|
||||
|
||||
|
||||
@@ -5503,7 +5503,7 @@ XXH_PUBLIC_API int XXH128_cmp(const void* h128_1, const void* h128_2)
|
||||
|
||||
/*====== Canonical representation ======*/
|
||||
/*! @ingroup xxh3_family */
|
||||
XXH_PUBLIC_API void
|
||||
static zend_always_inline void
|
||||
XXH128_canonicalFromHash(XXH128_canonical_t* dst, XXH128_hash_t hash)
|
||||
{
|
||||
XXH_STATIC_ASSERT(sizeof(XXH128_canonical_t) == sizeof(XXH128_hash_t));
|
||||
|
||||
Reference in New Issue
Block a user