PHP 4.0 Bug #9970 Updated: fread() and file() cancels reading of any file on first #26 (Ctrl-Z) symbol
| From: | sniper@php.net | Date: | Sat, 24 Mar 2001 17:03:51 +0000 |
| Subject: | PHP 4.0 Bug #9970 Updated: fread() and file() cancels reading of any file on first #26 (Ctrl-Z) symbol | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-49887@lists.php.net to get a copy of this message | ||
ID: 9970
Updated by: sniper
Reported By: rmi@moscowmail.com
Old-Status: Feedback
Status: Closed
Bug Type: Filesystem function related
Assigned To:
Comments:
file() function was changed to open file in binary
mode in the CVS (2000/12/12).
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2001-03-24 11:05:45] derick@php.net
This is not a bug, if you open the file with fopen ("filename", "rb"); (b =
binary) it should work fine.
file() however wont work this way.
---------------------------------------------------------------------------
[2001-03-24 10:49:54] rmi@moscowmail.com
This happens only in ISAPI module. fread() and file () reads only portion of the given file from
beginning to the first #26 character. fgetc() returns an empty string instead of it.
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9970&edit=2