|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19305 CarriageReturn/LineFeed 0x0D 0x0A (\r\n)
Submitted: 2002-09-09 05:23 UTC Modified: 2002-09-09 07:24 UTC
From: andre dot steffens at postadress dot de Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.2.3 OS: Win2k
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
50 - 49 = ?
Subscribe to this entry?

 [2002-09-09 05:23 UTC] andre dot steffens at postadress dot de
When I write a txt-file via PHP and the Apache2 modul, PHP creates an CarriageReturn/LineFeed (0x0D 0x0A) only I use "\n".

The same skript in batchmode (with the php.exe) creates only the correct sign (0x0A).

If I use "\r\n" PHP creates an 0x0D 0x0D 0x0A with the modul an the correct 0x0D 0x0A with php.exe!


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-09 07:24 UTC]
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit

Thank you for your interest in PHP.

You need to open the file with the b switch. See for more information.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Mar 28 06:03:37 2023 UTC