import zend standard tests
[hiphop-php.git] / hphp / test / zend / bad / ext-standard-math / log10_basiclong_64bit.php
blob115d2083cc7b46728300532ecd2ccaa7838f59ce
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 $longVals = array(
9 MAX_64Bit, MIN_64Bit, MAX_32Bit, MIN_32Bit, MAX_64Bit - MAX_32Bit, MIN_64Bit - MIN_32Bit,
10 MAX_32Bit + 1, MIN_32Bit - 1, MAX_32Bit * 2, (MAX_32Bit * 2) + 1, (MAX_32Bit * 2) - 1,
11 MAX_64Bit -1, MAX_64Bit + 1, MIN_64Bit + 1, MIN_64Bit - 1
15 foreach ($longVals as $longVal) {
16 echo "--- testing: $longVal ---\n";
17 var_dump(log10($longVal));
21 ===DONE===