2005-12-03 10:31:01 +00:00
|
|
|
--TEST--
|
2018-10-03 06:48:11 +00:00
|
|
|
Hash: ADLER32 algorithm
|
2005-12-03 10:31:01 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
echo hash('adler32', ''), "\n";
|
|
|
|
echo hash('adler32', 'a'), "\n";
|
|
|
|
echo hash('adler32', 'abc'), "\n";
|
|
|
|
echo hash('adler32', 'message digest'), "\n";
|
|
|
|
echo hash('adler32', 'abcdefghijklmnopqrstuvwxyz'), "\n";
|
|
|
|
echo hash('adler32', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'), "\n";
|
|
|
|
echo hash('adler32', '12345678901234567890123456789012345678901234567890123456789012345678901234567890'), "\n";
|
|
|
|
?>
|
|
|
|
--EXPECT--
|
2009-06-30 13:21:53 +00:00
|
|
|
00000001
|
|
|
|
00620062
|
|
|
|
024d0127
|
|
|
|
29750586
|
|
|
|
90860b20
|
|
|
|
8adb150c
|
|
|
|
97b61069
|