bug32828.phpt 420 B

123456789101112131415161718192021
  1. --TEST--
  2. Bug #32828 (Throwing exception in output_callback function with ob_start and ob_end_clean leads to segfault)
  3. --FILE--
  4. <?php
  5. function output_handler($buffer)
  6. {
  7. throw new Exception;
  8. }
  9. ob_start('output_handler');
  10. ob_end_clean();
  11. ?>
  12. --EXPECTF--
  13. Fatal error: Uncaught Exception in %s:%d
  14. Stack trace:
  15. #0 [internal function]: output_handler('', %d)
  16. #1 %s(%d): ob_end_clean()
  17. #2 {main}
  18. thrown in %s on line %d