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

Making zend_hash_str_find_ptr_lc && zend_hash_find_ptr_lc C++ friendly (#16476)

This commit is contained in:
Kasey Jenkins
2024-10-17 14:18:14 +02:00
committed by GitHub
parent 89f10e6e92
commit cf3ecfff25

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;