#45770 [Fbk->Opn]: error_log entries do not have linebreaks
| From: | dueyduong at gmail dot com | Date: | Sat, 09 Aug 2008 17:31:39 +0000 |
| Subject: | #45770 [Fbk->Opn]: error_log entries do not have linebreaks | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-127832@lists.php.net to get a copy of this message | ||
ID: 45770
User updated by: dueyduong at gmail dot com
Reported By: dueyduong at gmail dot com
-Status: Feedback
+Status: Open
Bug Type: *General Issues
Operating System: IIS6
PHP Version: 5.2.6
New Comment:
Alright let me try again.
Ok -- display_errors is turned Off. log_errors is turned On.
error_log = "/logs/php-errors.log"
Now, when there is an error and the log file is written to, each error
entry in the log file is written to the same (single) line in the log
file, without any line breaks.
For example:
These options need to match
in Unknown on line 0 [09-Aug-2008 10:24:53] PHP Parse error: syntax
error, unexpected T_ECHO in C:\...httpdocs\priv\test.php on line 5
[09-Aug-2008 10:26:18] PHP Parse error: syntax error, unexpected
T_ECHO, expecting ',' or ';' in C:\...httpdocs\priv\test.php on line 7
[09-Aug-2008 10:26:20] PHP Parse error: syntax error, unexpected
T_ECHO, expecting ',' or ';' in C:\...\httpdocs\priv\test.php on line 7
In this example, there were 3 instances of errors, and they should each
be on a separate line in the log file. Instead, all 3 error logs are on
the same single line without any line breaks between each error.
Hope that is clear now.
Previous Comments:
------------------------------------------------------------------------
[2008-08-09 16:45:20] jani@php.net
So what is it set to? PLEASE be more specific, we can't read
minds..unfortunately.
------------------------------------------------------------------------
[2008-08-09 01:00:16] dueyduong at gmail dot com
Sorry for not being clear to begin with -- error_log the php.ini
option, not the function.
------------------------------------------------------------------------
[2008-08-08 23:56:50] jani@php.net
Do you mean error_log() the function or error_log the php.ini option?
------------------------------------------------------------------------
[2008-08-08 23:53:28] dueyduong at gmail dot com
Description:
------------
New entries in the error log file do not start on a new line. That is,
every error log seems to run continuously on one single line in the
file.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45770&edit=1