|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-06-30 13:23 UTC] scottmac@php.net
[2009-08-12 00:18 UTC] svn@php.net
[2009-08-12 00:22 UTC] scottmac@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 02:00:01 2025 UTC |
Description: ------------ 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 >>> hex(zlib.adler32('abc',1)) '0x24d0127' I saw that a bug addressed this same thing for the crc32 algorithm, but what about adler32? Reproduce code: --------------- <?php echo hash("adler32","abc"); ?> Expected result: ---------------- 24d0127 Actual result: -------------- 27014d02