Req #62063 [NEW]: None of the common and decent non-crypto hash functions are included in PHP
| From: | slogger at lavabit dot com | Date: | Fri, 18 May 2012 18:29:30 +0000 |
| Subject: | Req #62063 [NEW]: None of the common and decent non-crypto hash functions are included in PHP | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-170565@lists.php.net to get a copy of this message | ||
From:
Operating system: Any/All
PHP version: Irrelevant
Package: *Encryption and hash functions
Bug Type: Feature/Change Request
Bug description:None of the common and decent non-crypto hash functions are included in PHP
Description:
------------
It'd be nice to see a module/class/library/function that supported the good
non-cryptographic hash functions which can be quite useful for some
situations.
For example (particularly) CityHash, Jenkins, Murmur3, and Spooky.
They can be a nice performance boost for situations where you need to use
lots of hashes and a cryptographic hash isn't needed.
Obviously you can just use sha for most things you could use a non-crypto
hash for, but it'd still be nice to have them available, especially with
the rise of 'big-data' type applications.
For reference,
http://blog.aggregateknowledge.com/2012/02/02/choosing-a-good-hash-function-part-3/
talks about selection, use case and comparisons, which might be
interesting.
Test script:
---------------
Test script for something that doesn't exist doesn't make sense.
Expected result:
----------------
NA
Actual result:
--------------
NA
--
Edit bug report at https://bugs.php.net/bug.php?id=62063&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62063&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62063&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62063&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=62063&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62063&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=62063&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=62063&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=62063&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=62063&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=62063&r=support
Expected behavior: https://bugs.php.net/fix.php?id=62063&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=62063&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=62063&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=62063&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62063&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=62063&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=62063&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=62063&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=62063&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=62063&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=62063&r=mysqlcfg