From:
Operating system: Ubuntu
PHP version: 5.4.0
Package: hash related
Bug Type: Bug
Bug description:hash-tiger generates a different value between 5.3/5.4
Description:
------------
The hash generated by PHP 5.3.x is diferent than the generated by 5.4.x
using the hashing algorithm tiger160,3
Test script:
---------------
PHP 5.3.x:
[#] php -v
PHP 5.3.8 (cli) (built: Feb 28 2012 10:44:41)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
[#] php -r 'echo hash("tiger160,3", "1awks!4090");'
f8d2f5f634cc0ec4f495ac1aeb45010e90e310a3
[#] php -v
PHP 5.4.1RC1-dev (cli) (built: Mar 6 2012 16:25:42) (DEBUG)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
[#] php -r 'echo hash("tiger160,3", "1awks!4090");'
c40ecc34f6f5d2f80e0145eb1aac95f43045295d
Expected result:
----------------
Hash values returned must be the same for the same value between php
versions
--
Edit bug report at https://bugs.php.net/bug.php?id=61307&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=61307&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=61307&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=61307&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=61307&r=fixed
Fixed in SVN and need be documented:
https://bugs.php.net/fix.php?id=61307&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=61307&r=alreadyfixed
Need backtrace:
https://bugs.php.net/fix.php?id=61307&r=needtrace
Need Reproduce Script:
https://bugs.php.net/fix.php?id=61307&r=needscript
Try newer version:
https://bugs.php.net/fix.php?id=61307&r=oldversion
Not developer issue:
https://bugs.php.net/fix.php?id=61307&r=support
Expected behavior:
https://bugs.php.net/fix.php?id=61307&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=61307&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=61307&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=61307&r=globals
PHP 4 support discontinued:
https://bugs.php.net/fix.php?id=61307&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=61307&r=dst
IIS Stability:
https://bugs.php.net/fix.php?id=61307&r=isapi
Install GNU Sed:
https://bugs.php.net/fix.php?id=61307&r=gnused
Floating point limitations:
https://bugs.php.net/fix.php?id=61307&r=float
No Zend Extensions:
https://bugs.php.net/fix.php?id=61307&r=nozend
MySQL Configuration Error:
https://bugs.php.net/fix.php?id=61307&r=mysqlcfg