]> granicus.if.org Git - php/commitdiff
Fixed the test so it works properly on both 32 and 64 bit platforms.
authorIlia Alshanetsky <iliaa@php.net>
Sat, 16 Nov 2002 17:26:26 +0000 (17:26 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sat, 16 Nov 2002 17:26:26 +0000 (17:26 +0000)
ext/standard/tests/strings/crc32.phpt

index 0234c0dd8d03a0c3487e88a88eb22179a91fe786..8074c5e6f9998402d51fdd682f720d2d61cdf772 100644 (file)
@@ -6,11 +6,11 @@ crc32() function
 <?php
 $input = array("foo", "bar", "baz", "grldsajkopallkjasd");
 foreach($input AS $i) {
-       echo crc32($i)."\n";
+       printf("%u\n", crc32($i));
 }
 ?>
 --EXPECT--
--1938594527
+2356372769
 1996459178
 2015626392
 824412087