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:9
Avg. Score:4.4 ± 0.8
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
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: 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sat May 03 15:01:28 2025 UTC