php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10069 fread() / fputs() error with apache modules
Submitted: 2001-03-29 21:13 UTC Modified: 2001-03-30 10:25 UTC
From: chouyu at ithow dot com Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.0.4pl1 OS: Windows NT 5.0 build 2195(Window
Private report: No CVE-ID: None
 [2001-03-29 21:13 UTC] chouyu at ithow dot com
When I run PHP 4.0.4pl1 as apache module on my Windows 2000 ADV Server, I got the problem.
When I fread() from a binary file, or fputs() a binary string to a file, the file not same as my data.
The "0x0a" expanded to "0x0d0a", I don't know why.
I try it by CGI PHP and PHP command line on same system, them ok.

My PHP 4.0.4pl1 Win32 Binary was download from www.php.net.
php.ini just changed some from php.ini-dist:
short_open_tag = off
max_execution_time = 120
session.cache_limiter     =private


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-30 10:25 UTC] hholzgra@php.net
add the letter 'b' to your fopen argument string
to enforce binary mode on DOS-based systems
(it doesn't harm on unix systems)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 06:01:35 2024 UTC