mirror of
https://github.com/php/php-src.git
synced 2024-10-21 08:22:42 +00:00
8600417c79
- ensure that we are in 32bit - do not try to compare the decimal values but hex, php does not have unsigned integer
16 lines
359 B
PHP
16 lines
359 B
PHP
--TEST--
|
|
Bug #36306 crc32() 64bit
|
|
--FILE--
|
|
<?php
|
|
|
|
/* as an example how to write crc32 tests
|
|
PHP does not have uint values, you cannot
|
|
display crc32 like a signed integer.
|
|
Have to find some small strings to truely reproduce
|
|
the problem, this example being not a problem
|
|
*/
|
|
echo dechex(crc32("platform independant")) . "\n";
|
|
?>
|
|
--EXPECT--
|
|
ccd9fe66
|