1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.4'

* PHP-8.4:
  Making zend_hash_str_find_ptr_lc && zend_hash_find_ptr_lc C++ friendly (#16476)
This commit is contained in:
Dmitry Stogov
2024-10-17 15:18:44 +03:00

View File

@@ -903,6 +903,8 @@ static zend_always_inline void *zend_hash_str_find_ptr(const HashTable *ht, cons
}
}
BEGIN_EXTERN_C()
/* Will lowercase the str; use only if you don't need the lowercased string for
* anything else. If you have a lowered string, use zend_hash_str_find_ptr. */
ZEND_API void *zend_hash_str_find_ptr_lc(const HashTable *ht, const char *str, size_t len);
@@ -911,6 +913,8 @@ ZEND_API void *zend_hash_str_find_ptr_lc(const HashTable *ht, const char *str, s
* anything else. If you have a lowered string, use zend_hash_find_ptr. */
ZEND_API void *zend_hash_find_ptr_lc(const HashTable *ht, zend_string *key);
END_EXTERN_C()
static zend_always_inline void *zend_hash_index_find_ptr(const HashTable *ht, zend_ulong h)
{
zval *zv;