php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5646 fwrite() in CGI php.exe doesn't make a CR/LF for "\n" but just a linefeed char
Submitted: 2000-07-17 16:42 UTC Modified: 2000-08-23 09:55 UTC
From: joel at intwebservices dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0.1pl2 OS: WINDOWS NT 4.0
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: joel at intwebservices dot com
New email:
PHP Version: OS:

 

 [2000-07-17 16:42 UTC] joel at intwebservices dot com
$dataStr="text data"."\n";
$writeSuccess=fwrite ($textFilehandle, $dataStr);

The log file will have just a HEX "0a" char instead of HEX "0D 0A" . 

It worked ok for the ISAPI module but when I switched to the CGI php I noticed the difference.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-04 11:31 UTC] stas@php.net
please provide full reproducing script.
 [2000-08-23 09:55 UTC] sniper@php.net
No feedback from user.

--Jani
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 20:00:02 2026 UTC