Bug #10388 Updated: File to file I/O problems
| From: | andy@php.net | Date: | Sun, 22 Jul 2001 16:55:45 +0000 |
| Subject: | Bug #10388 Updated: File to file I/O problems | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-60626@lists.php.net to get a copy of this message | ||
ID: 10388
Updated by: andy
Reported By: rainwave@email.msn.com
Old Status: Feedback
Status: Closed
Bug Type: Filesystem function related
Operating System: Windows 98
PHP Version: 4.0.4
New Comment:
no feedback after 30+ days.
Previous Comments:
------------------------------------------------------------------------
[2001-06-14 16:10:39] sniper@php.net
Without complete (but short) script it's hard to tell.
And have you tried with php 4.0.5 ?
--Jani
------------------------------------------------------------------------
[2001-04-18 19:25:10] rainwave@email.msn.com
Whenever I read from file and write directly to another, such as in this line:
fwrite($fileout,fread($filein,255));
Any occurances of the byte 0x0A will be replaced by 0x0D0A. If I try to read indirectly, like this:
$out = fread($filein,255);
fwrite($fileout,$out);
The file will always be saved as ASCII, even if I add the "b" flag to fopen. Is this a
bug, or am I making a stupid mistake?
Your time and effort are greatly appreciated.
~ Joe Ferris ~
P.S. Magic quotes are off
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=10388&edit=1