xref: /php-src/Zend/tests/gh10695_6.phpt (revision b3e33be4)
1--TEST--
2GH-10695: Exceptions from output buffering handlers during shutdown are caught
3--FILE--
4<?php
5set_exception_handler(function (\Throwable $exception) {
6    echo 'Caught: ' . $exception->getMessage() . "\n";
7});
8
9ob_start(function () {
10    throw new \Exception('ob_start');
11});
12?>
13--EXPECT--
14Caught: ob_start
15