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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;