php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8564 fread generating false errors
Submitted: 2001-01-05 10:57 UTC Modified: 2001-04-10 09:42 UTC
From: admin at overdoos dot dhs dot org Assigned:
Status: Closed Package: *Directory/Filesystem functions
PHP Version: 4.0.4 OS: Win9x
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: admin at overdoos dot dhs dot org
New email:
PHP Version: OS:

 

 [2001-01-05 10:57 UTC] admin at overdoos dot dhs dot org
when reading from an existing file the following line will work correctly:
$byte = @fread($fp,2) or die("ERROR: Can't read from file.");

but the next line will cause the script to "die" no matter if it the beginning or halfway the file.

$byte = @fread($fp,1) or die("ERROR: Can't read from file.");

the ini file is the standard ini file with the timeout set to 0 so it doesnt time out. the script is run in an MSDos shell in windows.. It works fine till it needs to read 1 single byte from a file..

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-06 02:44 UTC] cynic@php.net
note: 4.0.4pl1 RC1 doesn't exhibit this behavior.
 [2001-03-01 21:57 UTC] sniper@php.net
Does this happen with PHP 4.0.4pl1 or not?

--Jani

 [2001-04-10 09:42 UTC] sniper@php.net
No feedback. If this happens with soon to be released PHP 4.0.5 too, reopen this bug report.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 15:01:29 2024 UTC