Skip to content

Commit 8a3ee2f

Browse files
committed
Drop _zend_hash_find_known_hash alias
1 parent 5695fe4 commit 8a3ee2f

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

Zend/zend_hash.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2270,12 +2270,6 @@ ZEND_API zval* ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *ke
22702270
return p ? &p->val : NULL;
22712271
}
22722272

2273-
ZEND_API ZEND_ATTRIBUTE_DEPRECATED
2274-
zval* ZEND_FASTCALL _zend_hash_find_known_hash(const HashTable *ht, zend_string *key)
2275-
{
2276-
return zend_hash_find_known_hash(ht, key);
2277-
}
2278-
22792273
ZEND_API zval* ZEND_FASTCALL zend_hash_find_known_hash(const HashTable *ht, zend_string *key)
22802274
{
22812275
Bucket *p;

Zend/zend_hash.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,7 @@ ZEND_API zval* ZEND_FASTCALL zend_hash_str_find(const HashTable *ht, const char
177177
ZEND_API zval* ZEND_FASTCALL zend_hash_index_find(const HashTable *ht, zend_ulong h);
178178
ZEND_API zval* ZEND_FASTCALL _zend_hash_index_find(const HashTable *ht, zend_ulong h);
179179

180-
/**
181-
* The same as zend_hash_find(), but hash value of the key must be already calculated.
182-
* Use zend_hash_find_known_hash() when targeting PHP 8.1+; old name kept for bc only.
183-
*/
184-
ZEND_API ZEND_ATTRIBUTE_DEPRECATED
185-
zval* ZEND_FASTCALL _zend_hash_find_known_hash(const HashTable *ht, zend_string *key);
186-
180+
/* The same as zend_hash_find(), but hash value of the key must be already calculated. */
187181
ZEND_API zval* ZEND_FASTCALL zend_hash_find_known_hash(const HashTable *ht, zend_string *key);
188182

189183
static zend_always_inline zval *zend_hash_find_ex(const HashTable *ht, zend_string *key, bool known_hash)

0 commit comments

Comments
 (0)