PHP 4.0 Bug #8564 Updated: fread generating false errors

From: Date: Sat, 06 Jan 2001 07:44:20 +0000
Subject: PHP 4.0 Bug #8564 Updated: fread generating false errors
Groups: php.dev 
Request: Send a blank email to php-dev+get-43142@lists.php.net to get a copy of this message
ID: 8564 Updated by: cynic Reported By: admin@overdoos.dhs.org Status: Open Bug Type: *Directory/Filesystem functions Assigned To: Comments: note: 4.0.4pl1 RC1 doesn't exhibit this behavior. Previous Comments: --------------------------------------------------------------------------- [2001-01-05 10:57:35] admin@overdoos.dhs.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.. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8564

« previous php.dev (#43142) next »