php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18631 Can not read Binary file completely when using ISAPI
Submitted: 2002-07-29 15:02 UTC Modified: 2002-07-30 18:29 UTC
From: kenny at yellowzone dot com Assigned:
Status: Not a bug Package: IIS related
PHP Version: 4.2.1 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
13 + 30 = ?
Subscribe to this entry?

 
 [2002-07-29 15:02 UTC] kenny at yellowzone dot 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. 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-29 20:19 UTC] sniper@php.net
I guess you have opened it in "rb" mode? (just want to be sure about that..)

 [2002-07-30 12:36 UTC] kenny at yellowzone dot com
I used "r" mode only. Maybe that's why.
 [2002-07-30 18:29 UTC] sniper@php.net
You have to use 'rb' if you're dealing with binary files under windows. 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 17:01:29 2024 UTC