1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/Zend/tests/exceptions/gh10695_1.phpt
DanielEScherzer a81649f992 Zend/tests: organize some tests with sub directories (4) (#17778)
First pass at moving `Zend/tests/gh*` tests to existing sub directories

Work towards GH-15631
2025-02-13 16:17:36 +00:00

17 lines
418 B
PHP

--TEST--
GH-10695: Exceptions in register_shutdown_function() are caught by set_exception_handler()
--FILE--
<?php
set_exception_handler(function (\Throwable $exception) {
echo 'Caught: ' . $exception->getMessage() . "\n";
});
register_shutdown_function(function () {
echo "register_shutdown_function()\n";
throw new \Exception('shutdown');
});
?>
--EXPECT--
register_shutdown_function()
Caught: shutdown