ob_start_basic_003.phpt 316 B

123456789101112131415161718
  1. --TEST--
  2. ob_start(): ensure even fatal error test is affected by output buffering.
  3. --FILE--
  4. <?php
  5. function f() {
  6. return "I have stolen your output";
  7. }
  8. ob_start('f');
  9. cause_fatal_error(); // call undefined function
  10. ob_end_flush();
  11. echo "done (you shouldn't see this)";
  12. ?>
  13. --EXPECT--
  14. I have stolen your output