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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rmi at moscowmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 00:01:29 2025 UTC