ID: 45770 Updated by: [EMAIL PROTECTED] Reported By: dueyduong at gmail dot com -Status: Open +Status: Feedback Bug Type: *General Issues Operating System: IIS6 PHP Version: 5.2.6 New Comment:
Works fine for me using CLI. Please try it yourself too. Previous Comments: ------------------------------------------------------------------------ [2008-08-09 17:31:38] dueyduong at gmail dot com 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. ------------------------------------------------------------------------ [2008-08-09 16:45:20] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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