From:             
Operating system: Mac OS X
PHP version:      5.4SVN-2012-01-29 (SVN)
Package:          mhash related
Bug Type:         Bug
Bug description:tests fail for mhash() and mhash_keygen_s2k() functions and 
MHASH_TIGER

Description:
------------
make test failed test summary:
mhash() test [ext/hash/tests/mhash_001.phpt]
mhash_keygen_s2k() test [ext/hash/tests/mhash_003.phpt

mhash_003.out:
MHASH_TIGER: string(200)
"67eac97b9dca0a47b1f6262f330264e4ce1c233760fe3255f642512fd3127929baccf1e758236b2768a4c2c0c06e118b19e40e2f04a5f745820fb8a99bdbc00698702a4d3120171856c4c94bda79ba1b4f60d509d7f8954da818a29797368dd47c1122aa"
MHASH_TIGER: string(200)
"470aca9d7bc9ea67e46402332f26f6b15532fe6037231cce297912d32f5142f6276b2358e7f1ccba8b116ec0c0c2a46845f7a5042f0ee41906c0db9ba9b80f82181720314d2a70981bba79da4bc9c4564d95f8d709d5604fd48d369797a218a862196f48"

Test script:
---------------
mhash_003.php
foreach ($supported_hash_al as $hash=>$wanted) {
        $passwd = str_repeat($hash, 10);
        $salt = str_repeat($hash, 2);
        $result = mhash_keygen_s2k(constant($hash), $passwd, $salt, 100);
        if (!strcmp(bin2hex($result), $wanted)) {
                echo "$hash\nok\n";
        } else {
                echo "$hash: ";
                var_dump($wanted);
                echo "$hash: ";
                var_dump(bin2hex($result));
        }
        echo "\n";
}


-- 
Edit bug report at https://bugs.php.net/bug.php?id=60922&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=60922&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=60922&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=60922&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=60922&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=60922&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=60922&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=60922&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=60922&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=60922&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=60922&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=60922&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=60922&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=60922&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=60922&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=60922&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=60922&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=60922&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=60922&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=60922&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=60922&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=60922&r=mysqlcfg

Reply via email to