php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9970 fread() and file() cancels reading of any file on first #26 (Ctrl-Z) symbol
Submitted: 2001-03-24 10:49 UTC Modified: 2001-03-24 12:03 UTC
From: rmi at moscowmail dot com Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.0.4pl1 OS: Win2000 Server/Russian
Private report: No CVE-ID: None
 [2001-03-24 10:49 UTC] rmi at moscowmail dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-24 11:05 UTC] 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 12:03 UTC] sniper@php.net
file() function was changed to open file in binary
mode in the CVS (2000/12/12).

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 00:01:30 2024 UTC