php.net |  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: andre dot steffens at postadress dot de
New email:
PHP Version: OS:

 

 [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!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-09 07:24 UTC] sander@php.net
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 http://www.php.net/support.php

Thank you for your interest in PHP.

You need to open the file with the b switch. See http://php.net/fopen for more information.
 
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Feb 05 01:03:38 2023 UTC