#18631 [Opn->Bgs]: Can not read Binary file completely when using ISAPI

From: Date: Tue, 30 Jul 2002 22:29:21 +0000
Subject: #18631 [Opn->Bgs]: Can not read Binary file completely when using ISAPI
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15631@lists.php.net to get a copy of this message
ID: 18631 Updated by: sniper@php.net Reported By: kenny@yellowzone.com -Status: Open +Status: Bogus Bug Type: IIS related Operating System: Windows 2000 PHP Version: 4.2.1 New Comment: You have to use 'rb' if you're dealing with binary files under windows. Previous Comments: ------------------------------------------------------------------------ [2002-07-30 12:36:26] kenny@yellowzone.com I used "r" mode only. Maybe that's why. ------------------------------------------------------------------------ [2002-07-29 20:19:05] sniper@php.net I guess you have opened it in "rb" mode? (just want to be sure about that..) ------------------------------------------------------------------------ [2002-07-29 15:02:17] kenny@yellowzone.com The fread() function can not read the complete content of the binary file, such as an PDF file if it is more than 100k. It happens if the system is using IIS and PHP Isapi. If will work fine if it is using IIS and PHP in CGI mode. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18631&edit=1

« previous php.bugs (#15631) next »