php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #26934 error logging should log url for each page
Submitted: 2004-01-16 08:49 UTC Modified: 2013-06-27 22:15 UTC
Votes:8
Avg. Score:4.6 ± 0.7
Reproduced:7 of 8 (87.5%)
Same Version:2 (28.6%)
Same OS:2 (28.6%)
From: Xuefer at 21cn dot com Assigned:
Status: Wont fix Package: *General Issues
PHP Version: 5CVS-2004-01-16 (dev) OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: Xuefer at 21cn dot com
New email:
PHP Version: OS:

 

 [2004-01-16 08:49 UTC] Xuefer at 21cn dot com
Description:
------------
don't know if this feature is request before(i searched, not found)

there're many times error show in my log files
1.
[16-Jan-2004 21:38:42] PHP Warning:  Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0

2.
[16-Jan-2004 21:38:47] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in /path/to/file.inc.php on line 113

but i don't know which request url cause the above error
there're too many pages include file /path/to/file.inc.php
what a hard life~

please add init setting:
error_log_request_url (boolean) default: true

[16-Jan-2004 21:38:42] PHP REQUEST:  GET www.domain.com/abc.php
[16-Jan-2004 21:38:42] PHP Warning:  etc etc..
[16-Jan-2004 21:38:43] PHP Fatal error:  etc etc..



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-09-27 05:30 UTC] jbyers at gmail dot com
This would be tremendously useful for debugging issues on high-traffic sites.  Just the timestamp isn't sufficient when there are high numbers of requests for that second.
 [2012-10-24 09:16 UTC] moreeasy at gmail dot com
I've found useful using register_shutdown_function() at the start of my scripts


register_shutdown_function('shutdownFunction');

function shutDownFunction() { 
    $error = error_get_last();
    print_r($error);
}
 [2013-06-27 22:15 UTC] yohgaki@php.net
-Status: Open +Status: Wont fix -Package: Feature/Change Request +Package: *General Issues
 [2013-06-27 22:15 UTC] yohgaki@php.net
PHP is not used only for web apps. If you would like to have custom error 
logging, use set_error/exception_handler().
 
PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Fri Sep 21 02:01:26 2018 UTC