Bug #14615 Updated: PHP log does not contain proper CRLF's

From: Date: Thu, 20 Dec 2001 09:36:06 +0000
Subject: Bug #14615 Updated: PHP log does not contain proper CRLF's
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-74554@lists.php.net to get a copy of this message
ID: 14615 Updated by: mfischer Reported By: timvandermolen@hotmail.com Old Status: Bogus Status: Open Old Bug Type: Unknown/Other Function Bug Type: Feature/Change Request Operating System: Windows PHP Version: 4.1.0 New Comment: Reopen, leave Type: to Feature Request. Previous Comments: ------------------------------------------------------------------------ [2001-12-20 04:28:40] timvandermolen@hotmail.com "but i'm not really sure what log we are talking about here" I am talking about the PHP log file which can be defined with the directive "error_log = ..." in the PHP.INI file. ------------------------------------------------------------------------ [2001-12-20 04:23:54] timvandermolen@hotmail.com There's nothing wrong with the editor. I have used Notepad to view the PHP log. I have also viewed the PHP log with Visual C++ which *converts* (note the word convert) the LF to CRLF. Appearently, CRLF is the preferred format in Windows for new lines above LF. Besides, CRLF is the new line format which practically every editor in Windows supports. And besides everything: CRLF *is* the Windows newline, LF is not. So it would not make sense to use LF as a new line in Windows environments. ------------------------------------------------------------------------ [2001-12-20 04:23:14] hholzgra@php.net well, different systems *have* different default line ending styles, so we might want to write whatever is considered 'native' on a certain platform but i'm not really sure what log we are talking about here, as the default log mechanism (as i know it on Linux/Apache) is to pass log messages to the webserver for logging? ------------------------------------------------------------------------ [2001-12-20 04:10:07] mfischer@php.net Your sentence doesn't compute: "[...] but Windows only recognizes ASCII 13 + ASCII 10 (CRLF) as a new line.". You mean, your editor is broken and does not support it. No bug, bogusifying. ------------------------------------------------------------------------ [2001-12-20 04:02:15] timvandermolen@hotmail.com In the PHP log, new lines are defined only with ASCII 10 (LF), but Windows only recognizes ASCII 13 + ASCII 10 (CRLF) as a new line. This makes the PHP log look like a mess on Windows systems. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14615&edit=1

« previous php.dev (#74554) next »