mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
Removed duplicated hash function implementation (100% source compatible)
This commit is contained in:
parent
9d060e8d48
commit
aa427a10d4
@ -876,12 +876,6 @@ ZEND_API void zend_hash_merge_ex(HashTable *target, HashTable *source, copy_ctor
|
||||
}
|
||||
|
||||
|
||||
ZEND_API ulong zend_get_hash_value(const char *arKey, uint nKeyLength)
|
||||
{
|
||||
return zend_inline_hash_func(arKey, nKeyLength);
|
||||
}
|
||||
|
||||
|
||||
/* Returns SUCCESS if found and FAILURE if not. The pointer to the
|
||||
* data is returned in pData. The reason is that there's no reason
|
||||
* someone using the hash table might not want to have NULL data
|
||||
|
@ -157,8 +157,8 @@ ZEND_API int zend_hash_del_key_or_index(HashTable *ht, const char *arKey, uint n
|
||||
zend_hash_del_key_or_index(ht, arKey, nKeyLength, h, HASH_DEL_KEY_QUICK)
|
||||
#define zend_hash_index_del(ht, h) \
|
||||
zend_hash_del_key_or_index(ht, NULL, 0, h, HASH_DEL_INDEX)
|
||||
|
||||
ZEND_API ulong zend_get_hash_value(const char *arKey, uint nKeyLength);
|
||||
#define zend_get_hash_value \
|
||||
zend_hash_func
|
||||
|
||||
/* Data retreival */
|
||||
ZEND_API int zend_hash_find(const HashTable *ht, const char *arKey, uint nKeyLength, void **pData);
|
||||
|
Loading…
Reference in New Issue
Block a user