Bug #66698 [NEW]: Missing FNV1a32 and FNV1a64 hash functions

From: Date: Wed, 12 Feb 2014 10:04:51 +0000
Subject: Bug #66698 [NEW]: Missing FNV1a32 and FNV1a64 hash functions
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184271@lists.php.net to get a copy of this message
From: slusarz at curecanti dot org Operating system: Linux PHP version: master-Git-2014-02-12 (Git) Package: hash related Bug Type: Bug Bug description:Missing FNV1a32 and FNV1a64 hash functions Description: ------------ Looking at internal PHP code, there is existing code to allow for the 1a variants of FNV (http://www.isthe.com/chongo/tech/comp/fnv/index.html#FNV-1a). However, this code is never used - the only option with has() is the original algorithms, not the 1a algorithms. This patch adds support for the 1a variants to the hash list. I'm considering this a bug report, rather than a feature request, since the code to do the hashing already exists... this just seems to be an oversight. Patch will be provided on Github. -- Edit bug report at https://bugs.php.net/bug.php?id=66698&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66698&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66698&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66698&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66698&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66698&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66698&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66698&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66698&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66698&r=support Expected behavior: https://bugs.php.net/fix.php?id=66698&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66698&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66698&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66698&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66698&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66698&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66698&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66698&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66698&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66698&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66698&r=mysqlcfg

« previous php.bugs (#184271) next »