|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-09-05 03:04 UTC] laruence@php.net
[2012-09-05 03:06 UTC] laruence@php.net
-Status: Open
+Status: Duplicate
[2012-09-05 03:06 UTC] laruence@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 03:00:02 2025 UTC |
Description: ------------ Functions registered using register_shutdown_function are called after all fatal errors, except error "Method __toString() must not throw an exception". Test script: --------------- <?php class Test { function __toString() { throw new Exception; } } register_shutdown_function(function(){ echo 'Hello'; }); echo new Test; Expected result: ---------------- writes 'Hello' Actual result: -------------- shutdown function is not called