From:             php at twinmail dot de
Operating system: Windows XP SP2
PHP version:      5.2.8
PHP Bug Type:     hash related
Bug description:  The crc32b polynomial result has a wrong endianess

Description:
------------
The polynomial result of the crc32b hash function has since 5.2.8 a wrong
byte endianess on Windows. This also affects the CVS snapshot. I cannot
reproduce this error on any linux (debian / debian / gentoo / opensuse) box
I have, so I think this bug only affects Windows versions.

I tested different versions of PHP on my Windows system:

PHP 5.2.9RC4-dev (cli) (built: Feb 20 2009 15:57:39): affected
PHP 5.2.8 (cli) (built: Dec  8 2008 19:31:23): affected
PHP 5.2.6 (cli) (built: May  2 2008 18:02:07): NOT affected

The bug #45028 is maybe related to this one.

Reproduce code:
---------------
print hash('crc32b', 'Lorem Ipsum');

Expected result:
----------------
5dd48a35

Actual result:
--------------
358ad45d

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

Reply via email to