|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-10-15 17:12 UTC] tony2001@php.net
[2006-10-15 17:17 UTC] paul at profielland dot nl
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 29 23:00:01 2025 UTC |
Description: ------------ When you register a shutdown function with register_shutdown_function, and using trigger_error to give a error to the user, the function registered by register_shutdown_function isn't called. Reproduce code: --------------- <?php class error { function shutdown() { print "blabla"; } } $error = new error(); register_shutdown_function(array($error, 'shutdown')); trigger_Error('Error here', E_USER_ERROR); ?> Expected result: ---------------- Fatal error: Error here in /var/www/error.php on line 11 blabla Actual result: -------------- Fatal error: Error here in /var/www/error.php on line 11