timeout_variation_10.phpt 469 B

1234567891011121314151617181920212223242526
  1. --TEST--
  2. Timeout within shutdown function, variation
  3. --SKIPIF--
  4. <?php
  5. if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
  6. ?>
  7. --FILE--
  8. <?php
  9. include dirname(__FILE__) . DIRECTORY_SEPARATOR . "timeout_config.inc";
  10. set_time_limit($t);
  11. function f()
  12. {
  13. echo "call";
  14. busy_wait(5);
  15. }
  16. register_shutdown_function("f");
  17. ?>
  18. shutdown happens after here
  19. --EXPECTF--
  20. shutdown happens after here
  21. call
  22. Fatal error: Maximum execution time of 3 seconds exceeded in %s on line %d