]> granicus.if.org Git - php/commitdiff
Removed duplicated hash function implementation (100% source compatible)
authorDmitry Stogov <dmitry@zend.com>
Thu, 28 Nov 2013 13:01:10 +0000 (17:01 +0400)
committerDmitry Stogov <dmitry@zend.com>
Thu, 28 Nov 2013 13:01:10 +0000 (17:01 +0400)
Zend/zend_hash.c
Zend/zend_hash.h

index ae7d8402f4bdd91dfeb7b905387d7b9bfe71461c..5d81c285d4e44f2af1356f56e053838108827af1 100644 (file)
@@ -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
index 69732cd597531c1bf1a61d0a74cb6ca36f540ebb..74bede1afd11b2851a288b1fe3f1e56b6143003c 100644 (file)
@@ -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);