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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 23:01:26 2024 UTC