#20215 [NoF->Opn]: fputs(); (Line Feed / Carriage Return)

From: Date: Sat, 16 Nov 2002 12:22:56 +0000
Subject: #20215 [NoF->Opn]: fputs(); (Line Feed / Carriage Return)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-25053@lists.php.net to get a copy of this message
 ID:               20215
 User updated by:  admin@serveurperso.com
 Reported By:      admin@serveurperso.com
-Status:           No Feedback
+Status:           Open
 Bug Type:         Filesystem function related
 Operating System: Windows 2000
 PHP Version:      4.2.3
 New Comment:

The last PHP CVS snapshot (Win32) doesn't correct the bug  
Demo/Source :
http://www.serveurperso.com/temp/fputs.php
The function always adds some incorrects CRLF.


Previous Comments:
------------------------------------------------------------------------

[2002-11-16 01:12:37] sniper@php.net

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.



------------------------------------------------------------------------

[2002-11-01 16:16:31] iliaa@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip



------------------------------------------------------------------------

[2002-11-01 16:05:39] admin@serveurperso.com

To every writings the function "fput" adds jumps of lines in too much.

Sample script :
------------------------------------------------
<FORM ACTION = "?save=1" METHOD = "post">
 <TEXTAREA NAME = "contenu" ROWS="10" COLS="40">
<?
 $fichier = "fichier.txt";
 if($save) {
  $fp = fopen($fichier, "w");
  fputs($fp, stripslashes($contenu));
  fclose($fp);
 }
 readfile($fichier);
?>
 </TEXTAREA><BR>
 <INPUT TYPE = "submit" VALUE = "Enregistrer">
</FORM>
------------------------------------------------

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=20215&edit=1



Thread (17 messages)

« previous php.bugs (#25053) next »