005a.phpt 464 B

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