php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77002 EOL in error_log contains extra \r
Submitted: 2018-10-11 15:41 UTC Modified: 2018-11-08 02:16 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: johannes dot kingma at gmail dot com Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 7.2.11 OS: Windows 10
Private report: No CVE-ID: None
 [2018-10-11 15:41 UTC] johannes dot kingma at gmail dot com
Description:
------------
In the error_log each line is ended with '\r\r\n'

A proper formatted EOL should be one of

unix, unix-like, macOS: \n (LF)
Windows \r\n (CR+LF)

there is no practical standard, to my knowledge that uses CRCRLF as line ending character sequence.



Test script:
---------------
Not related to a script


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-10-11 16:05 UTC] peehaa@php.net
-Status: Open +Status: Feedback
 [2018-10-11 16:05 UTC] peehaa@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with ,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

I just tried to reproduce the issue on windows with apache and it simply returns CRLFas expected. The current provided information is not enough to properly diagnose the problem if there is one.
 [2018-11-08 02:16 UTC] peehaa@php.net
-Status: Feedback +Status: No Feedback
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Oct 08 02:01:28 2024 UTC