ID:               39162
 Updated by:       [EMAIL PROTECTED]
 Reported By:      paul at profielland dot nl
-Status:           Closed
+Status:           Bogus
 Bug Type:         Unknown/Other Function
 Operating System: WIN32
 PHP Version:      5.1.6


Previous Comments:
------------------------------------------------------------------------

[2006-10-15 17:17:07] paul at profielland dot nl

My mistake, has forgot to call a function in my class.

------------------------------------------------------------------------

[2006-10-15 17:12:06] [EMAIL PROTECTED]

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.

------------------------------------------------------------------------

[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

Reply via email to