import zend standard tests
[hiphop-php.git] / hphp / test / zend / bad / ext-standard-math / atan2_basiclong_64bit.php
blob530db470586a6ce9d597fee71fbab77872d53cb4
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
14 $otherVals = array(0, 1, -1, 7, 9, 65, -44, MAX_32Bit, MIN_32Bit, MAX_64Bit, MIN_64Bit);
17 foreach ($longVals as $longVal) {
18 foreach($otherVals as $otherVal) {
19 echo "--- testing: $longVal, $otherVal ---\n";
20 var_dump(atan2($longVal, $otherVal));
25 ===DONE===