go to bug id or search bugs for
I'm using the "adler32" algorithm of the PHP hash() function. The result that I get has the byte-order reversed from the result I get when doing the same hash on Python.
From the Python interpreter:
>>> import zlib
I saw that a bug addressed this same thing for the crc32 algorithm, but what about adler32?
Add a Patch
Add a Pull Request
Fixed in trunk and for 5.3.1, will do 5.2 shortly.
Automatic comment from SVN on behalf of scottmac
Log: MFB 5.3: Fix bug #48284 (r283144) - adler32 is in the wrong order. Changed to match what zlib produces.
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.