#39162 [Opn->Fbk]: register_shuwdown_function calls not when trigger_error is used
| From: | tony2001@php.net | Date: | Sun, 15 Oct 2006 17:12:06 +0000 |
| Subject: | #39162 [Opn->Fbk]: register_shuwdown_function calls not when trigger_error is used | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-103570@lists.php.net to get a copy of this message | ||
ID: 39162
Updated by: tony2001@php.net
Reported By: paul at profielland dot nl
-Status: Open
+Status: Feedback
Bug Type: Unknown/Other Function
Operating System: WIN32
PHP Version: 5.1.6
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
Can't reproduce.
Previous Comments:
------------------------------------------------------------------------
[2006-10-15 17:03:19] paul at profielland dot nl
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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39162&edit=1