Skip to content

Commit 95dbc33

Browse files
committed
Merge branch 'PHP-8.4'
* PHP-8.4: Making zend_hash_str_find_ptr_lc && zend_hash_find_ptr_lc C++ friendly (#16476)
2 parents 3351dae + cf3ecff commit 95dbc33

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Zend/zend_hash.h

+4
Original file line numberDiff line numberDiff line change
@@ -903,6 +903,8 @@ static zend_always_inline void *zend_hash_str_find_ptr(const HashTable *ht, cons
903903
}
904904
}
905905

906+
BEGIN_EXTERN_C()
907+
906908
/* Will lowercase the str; use only if you don't need the lowercased string for
907909
* anything else. If you have a lowered string, use zend_hash_str_find_ptr. */
908910
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
911913
* anything else. If you have a lowered string, use zend_hash_find_ptr. */
912914
ZEND_API void *zend_hash_find_ptr_lc(const HashTable *ht, zend_string *key);
913915

916+
END_EXTERN_C()
917+
914918
static zend_always_inline void *zend_hash_index_find_ptr(const HashTable *ht, zend_ulong h)
915919
{
916920
zval *zv;

0 commit comments

Comments
 (0)