bug36988.phpt 402 B

12345678910111213141516
  1. --TEST--
  2. Bug #36988 (mktime freezes on long numbers)
  3. --SKIPIF--
  4. <?php if (PHP_INT_SIZE != 4) echo "skip this test is for 32-bit only"; ?>
  5. --FILE--
  6. <?php
  7. date_default_timezone_set('GMT');
  8. $start = microtime(true);
  9. try {
  10. $a = mktime(1, 1, 1, 1, 1, 11111111111);
  11. } catch (TypeError $e) {
  12. echo $e->getMessage(), "\n";
  13. }
  14. ?>
  15. --EXPECT--
  16. mktime(): Argument #6 ($year) must be of type ?int, float given