Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'PHP-5.4' of git.php.net:/php-src into PHP-5.4
- Loading branch information
Showing
171 changed files
with
2,054 additions
and
892 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--TEST-- | ||
Bug #60909 (custom error handler throwing Exception + fatal error = no shutdown function). | ||
--FILE-- | ||
<?php | ||
register_shutdown_function(function(){echo("\n\n!!!shutdown!!!\n\n");}); | ||
set_error_handler(function($errno, $errstr, $errfile, $errline){ | ||
echo "error($errstr)"; | ||
throw new Exception("Foo"); | ||
}); | ||
|
||
require 'notfound.php'; | ||
--EXPECTF-- | ||
error(require(notfound.php): failed to open stream: No such file or directory) | ||
Warning: Uncaught exception 'Exception' with message 'Foo' in %sbug60909_1.php:5 | ||
Stack trace: | ||
#0 %sbug60909_1.php(8): {closure}(2, 'require(notfoun...', '%s', 8, Array) | ||
#1 %sbug60909_1.php(8): require() | ||
#2 {main} | ||
thrown in %sbug60909_1.php on line 5 | ||
|
||
Fatal error: main(): Failed opening required 'notfound.php' (include_path='%s') in %sbug60909_1.php on line 8 | ||
|
||
|
||
!!!shutdown!!! |
Oops, something went wrong.