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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: kenny at yellowzone dot com
New email:
PHP Version: OS:

 

 [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 00:01:28 2024 UTC