import zend standard tests
[hiphop-php.git] / hphp / test / zend / good / ext-standard-math / hexdec_basiclong_64bit.php
blob1912dee60b51c0d90d95b88da6fd03225035d4ff
1 <?php
3 define("MAX_64Bit", 9223372036854775807);
4 define("MAX_32Bit", 2147483647);
5 define("MIN_64Bit", -9223372036854775807 - 1);
6 define("MIN_32Bit", -2147483647 - 1);
8 $hexLongStrs = array(
9 '7'.str_repeat('f',15),
10 str_repeat('f',16),
11 '7'.str_repeat('f',7),
12 str_repeat('f',8),
13 '7'.str_repeat('f',16),
14 str_repeat('f',18),
15 '7'.str_repeat('f',8),
16 str_repeat('f',9)
20 foreach ($hexLongStrs as $strVal) {
21 echo "--- testing: $strVal ---\n";
22 var_dump(hexdec($strVal));
26 ===DONE===