|  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
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.
Block user comment
Status: Assign to:
Bug Type:
From: Xuefer at 21cn dot com
New email:
PHP Version: OS:


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

there're many times error show in my log files
[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

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

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

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

[16-Jan-2004 21:38:42] PHP REQUEST:  GET
[16-Jan-2004 21:38:42] PHP Warning:  etc etc..
[16-Jan-2004 21:38:43] PHP Fatal error:  etc etc..


Add a Patch

Pull Requests

Add a Pull Request


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


function shutDownFunction() { 
    $error = error_get_last();
 [2013-06-27 22:15 UTC]
-Status: Open +Status: Wont fix -Package: Feature/Change Request +Package: *General Issues
 [2013-06-27 22:15 UTC]
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-2019 The PHP Group
All rights reserved.
Last updated: Mon Jul 22 04:01:25 2019 UTC