php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39162 register_shuwdown_function calls not when trigger_error is used
Submitted: 2006-10-15 17:03 UTC Modified: 2006-10-15 17:25 UTC
From: paul at profielland dot nl Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 5.1.6 OS: WIN32
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: paul at profielland dot nl
New email:
PHP Version: OS:

 

 [2006-10-15 17:03 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-10-15 17:12 UTC] tony2001@php.net
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:17 UTC] paul at profielland dot nl
My mistake, has forgot to call a function in my class.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 14:04:04 2025 UTC