php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1620 fwrite/fputs adds unwanted newline
Submitted: 1999-06-28 19:17 UTC Modified: 1999-06-28 19:30 UTC
From: cliff dot wright at boeing dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0.9 OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cliff dot wright at boeing dot com
New email:
PHP Version: OS:

 

 [1999-06-28 19:17 UTC] cliff dot wright at boeing dot com
fwrite/fputs seems to always add a single newline whenever it
sees 1 or more newlines in the string. This occures even when
restricting output to a single character.
e.g.
fputs($fp,"\n",1);
fputs($fp,"something else");

This will output two newlines instead of one. I could see no way to
output a single newline (I even tried some urldecode combinations).

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-06-28 19:25 UTC] cliff dot wright at boeing dot com
this was related to a php2 to php3 conversion,
and is not a bug. i.e. close report.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 15:00:02 2026 UTC