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
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: 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 20:00:02 2026 UTC