bug74093.phpt 513 B

1234567891011121314151617181920
  1. --TEST--
  2. Bug #74093 (Maximum execution time of n+2 seconds exceed not written in error_log)
  3. --SKIPIF--
  4. <?php
  5. if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
  6. if (PHP_ZTS) die("skip only for no-zts build");
  7. if (substr(PHP_OS, 0, 3) == 'WIN') die("skip not for Windows");
  8. ?>
  9. --INI--
  10. memory_limit=1G
  11. max_execution_time=1
  12. hard_timeout=1
  13. --FILE--
  14. <?php
  15. $a1 = range(1, 2000000);
  16. $a2 = range(100000, 2999999);
  17. array_intersect($a1, $a2);
  18. ?>
  19. --EXPECTF--
  20. Fatal error: Maximum execution time of 1+1 seconds exceeded %s