From:             [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version:      4.2.3
PHP Bug Type:     Filesystem function related
Bug description:  fputs(); (Line Feed / Carriage Return)

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 bug report at http://bugs.php.net/?id=20215&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20215&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20215&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20215&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20215&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20215&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20215&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20215&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20215&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20215&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20215&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20215&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20215&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20215&r=isapi

Reply via email to