php-src/ext/standard/tests/strings/crc32.phpt

15 lines
215 B
Plaintext
Raw Normal View History

2002-10-06 19:12:22 +00:00
--TEST--
crc32() function
--FILE--
<?php
2006-12-06 13:21:48 +00:00
$input = array(b"foo", b"bar", b"baz", b"grldsajkopallkjasd");
2002-10-06 19:12:22 +00:00
foreach($input AS $i) {
printf("%u\n", crc32($i));
2002-10-06 19:12:22 +00:00
}
?>
--EXPECT--
2356372769
2002-10-06 19:12:22 +00:00
1996459178
2015626392
824412087