You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
395 B

  1. --TEST--
  2. Testing register_shutdown_function() with timeout. (Bug: #21513)
  3. --FILE--
  4. <?php
  5. ini_set('display_errors', 0);
  6. echo "Start\n";
  7. function boo()
  8. {
  9. echo "Shutdown\n";
  10. }
  11. register_shutdown_function("boo");
  12. /* not necessary, just to show the error sooner */
  13. set_time_limit(1);
  14. /* infinite loop to simulate long processing */
  15. for (;;) {}
  16. echo "End\n";
  17. ?>
  18. --EXPECT--
  19. Start
  20. Shutdown