mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
75a04eac97
exit() is now internally implemented by throwing an exception, performing a normal stack unwind and a clean shutdown. This ensures that no persistent resource leaks occur. The exception is internal, cannot be caught and does not result in the execution of finally blocks. This may be relaxed in the future. Closes GH-5768.
15 lines
172 B
PHP
15 lines
172 B
PHP
--TEST--
|
|
Exception handler should not be invoked for exit()
|
|
--FILE--
|
|
<?php
|
|
|
|
set_exception_handler(function($e) {
|
|
var_dump($e);
|
|
});
|
|
|
|
exit("Exit\n");
|
|
|
|
?>
|
|
--EXPECT--
|
|
Exit
|