ID:               18922
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Verified
+Status:           Closed
 Bug Type:         Filesystem function related
 Operating System: Windows 2k
 PHP Version:      4.3.0-dev
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.




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

[2002-08-15 20:05:25] [EMAIL PROTECTED]

Updated version, set to 'Verified'. (IIRC, this also happens with Macos
files..? And there's a bug report about it too)



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

[2002-08-15 14:28:11] [EMAIL PROTECTED]

Can reproduce in CVS

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

[2002-08-15 14:15:18] [EMAIL PROTECTED]

I found some boring things when i use file() fgetc()
all my test was based windows and i configed my php 
with the 'apache module' way .
1.
First i create a file named 'file.txt' with the Editplus,
and i type some charactors like:

s
s
s
s
s
s


my script is :
<?
$data=file('file.txt');
$wtmsg=implode(NULL,$data);
$fp=fopen('file.txt','w');
fwrite($fp,$wtmsg);
fclose($fp);
?>
after i refresh the page sometimes
the 'file.txt' is like :

s




s




s




s




s



the function file() add a lot of \r before \n 



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


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

Reply via email to