#20215 [Com]: fputs(); (Line Feed / Carriage Return)

From: Date: Tue, 11 Feb 2003 21:40:51 +0000
Subject: #20215 [Com]: fputs(); (Line Feed / Carriage Return)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-32817@lists.php.net to get a copy of this message
 ID:               20215
 Comment by:       6th@katiusha.com.ru
 Reported By:      admin@serveurperso.com
 Status:           Open
 Bug Type:         Filesystem function related
 Operating System: Windows 2000
 PHP Version:      4.3.0
 New Comment:

PHP 4.3.0 (build Dec 27 2002)
Apache 1.3.23
Win ME

This:

$f=fopen("bug","w");
fwrite($f,"test
"); // 74 65 73 74 _0D 0A_
fclose($f);

creates file:

74 65 73 74 _0D 0D 0A_

I'm using plain files with ms-dos line breaks to store databases, so
fwrite is _very_ important for me to work correctly.


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

[2003-02-09 10:53:25] moriyoshi@php.net

Similar to bug #21916

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

[2003-01-01 11:17:55] admin@serveurperso.com

The bug is always present, with php 4.3.0 on several Windows 2000 Pro /
Apache 1.3.27 systems...

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

[2002-12-19 23:10:37] 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-27 13:22:47] admin@serveurperso.com

I had foreseen what it is necessary since the beginning on:
http://www.serveurperso.com/temp (fichier.txt and
copy-paste from the
show_source("fputs.php");)

I send "fputs.php" script and "fichier.txt" sample text file to you
(wez@php.net) to make win you of the time.

I don't arrive determined of or come these 0D0A(hex) in too much. It
doubles has every writings.

(I am French sorry for my english)

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

[2002-11-27 06:09:24] wez@php.net

Can you provide a link that will allow me to download the .txt and .php
files directly?
(or zip them up and mail them to me)

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/20215

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



Thread (17 messages)

« previous php.bugs (#32817) next »