#18922 [Ver->Csd]: \r & \n & file()

From: Date: Mon, 23 Sep 2002 22:38:48 +0000
Subject: #18922 [Ver->Csd]: \r & \n & file()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-20144@lists.php.net to get a copy of this message
ID: 18922 Updated by: iliaa@php.net Reported By: phpinfo@21cn.com -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] sniper@php.net 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] kalowsky@php.net Can reproduce in CVS ------------------------------------------------------------------------ [2002-08-15 14:15:18] phpinfo@21cn.com 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

« previous php.bugs (#20144) next »