1--TEST-- 2crc32() function 3--FILE-- 4<?php 5$input = array("foo", "bar", "baz", "grldsajkopallkjasd"); 6foreach($input AS $i) { 7 printf("%u\n", crc32($i)); 8} 9printf("%u\n", crc32("1234567890123456")); 10printf("%u\n", crc32("1234567890123456abc")); 11printf("%u\n", crc32("12345678901234561234567890123456")); 12printf("%u\n", crc32("12345678901234561234567890123456abc")); 13printf("%u\n", crc32("123456789012345612345678901234561234567890123456")); 14printf("%u\n", crc32("123456789012345612345678901234561234567890123456abc")); 15printf("%u\n", crc32("1234567890123456123456789012345612345678901234561234567890123456")); 16printf("%u\n", crc32("1234567890123456123456789012345612345678901234561234567890123456abc")); 17printf("%u\n", crc32("12345678901234561234567890123456123456789012345612345678901234561234567890123456")); 18printf("%u\n", crc32("12345678901234561234567890123456123456789012345612345678901234561234567890123456abc")); 19printf("%u\n", crc32("12345678901234561234567890123456123456789012345612345678901234561234567890123456123456789012345612345678901234561234567890123456")); 20printf("%u\n", crc32("12345678901234561234567890123456123456789012345612345678901234561234567890123456123456789012345612345678901234561234567890123456abc")); 21printf("%u\n", crc32("123456789012345612345678901234561234567890123456123456789012345612345678901234561234567890123456123456789012345612345678901234561234567890123456")); 22printf("%u\n", crc32("123456789012345612345678901234561234567890123456123456789012345612345678901234561234567890123456123456789012345612345678901234561234567890123456abc")); 23?> 24--EXPECT-- 252356372769 261996459178 272015626392 28824412087 29509595063 301890929711 31156217630 32941689929 331939457775 342213121284 35522627406 363806880586 37105010221 381135881371 39640556525 403081003972 413751918510 421076024698 43