Edit report at https://bugs.php.net/bug.php?id=26934&edit=1

 ID:                 26934
 Updated by:         yohg...@php.net
 Reported by:        Xuefer at 21cn dot com
 Summary:            error logging should log url for each page
-Status:             Open
+Status:             Wont fix
 Type:               Feature/Change Request
-Package:            Feature/Change Request
+Package:            *General Issues
 Operating System:   *
 PHP Version:        5CVS-2004-01-16 (dev)
 Block user comment: N
 Private report:     N

 New Comment:

PHP is not used only for web apps. If you would like to have custom error 
logging, use set_error/exception_handler().


Previous Comments:
------------------------------------------------------------------------
[2012-10-24 09:16:43] 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);
}

------------------------------------------------------------------------
[2007-09-27 05:30:26] 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.

------------------------------------------------------------------------
[2004-01-16 08:49:09] 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..




------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=26934&edit=1

Reply via email to