php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36099 message of fatal error don't saved in $php_errormsg
Submitted: 2006-01-20 11:49 UTC Modified: 2006-01-20 13:27 UTC
From: max_m at eyelinkmedia dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5CVS-2006-01-20 (snap) OS: Win XP Pro
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: max_m at eyelinkmedia dot com
New email:
PHP Version: OS:

 

 [2006-01-20 11:49 UTC] max_m at eyelinkmedia dot com
Description:
------------
if i turned on track_errors message of Fatal Errors not saved in $php_errormsg. Checked via register_shutdown_function

Reproduce code:
---------------
ini_set('track_errors', 'On');
function shutdown () {
    global $php_errormsg;
    echo "ERROR : ".$php_errormsg."\n";
}
register_shutdown_function('shutdown');
$a = '';
$a->aaa();


Expected result:
----------------
5.1.3-dev
Fatal error: Call to a member function aaa() on a non-object in C:\usr\php_5_1_cvs\a.php on line 10
ERROR : Fatal error: Call to a member function aaa() on a non-object in C:\usr\php_5_1_cvs\a.php on line 10


Actual result:
--------------
5.1.3-dev
Fatal error: Call to a member function aaa() on a non-object in C:\usr\php_5_1_cvs\a.php on line 10
ERROR : 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-20 13:27 UTC] sniper@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 20 18:00:03 2025 UTC