Commit:    aa427a10d4064e0873b3de8cf1b38f2dabc02913
Author:    Dmitry Stogov <>         Thu, 28 Nov 2013 17:01:10 
Parents:   9d060e8d48bd6b2cc8c2a30f3b0eeeb4d867d934
Branches:  PHP-5.6 master


Removed duplicated hash function implementation (100% source compatible)

Changed paths:
  M  Zend/zend_hash.c
  M  Zend/zend_hash.h

diff --git a/Zend/zend_hash.c b/Zend/zend_hash.c
index ae7d840..5d81c28 100644
--- a/Zend/zend_hash.c
+++ b/Zend/zend_hash.c
@@ -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
diff --git a/Zend/zend_hash.h b/Zend/zend_hash.h
index 69732cd..74bede1 100644
--- a/Zend/zend_hash.h
+++ b/Zend/zend_hash.h
@@ -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, 
 #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);

PHP CVS Mailing List (
To unsubscribe, visit:

Reply via email to