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

Pull Requests

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 Nov 28 07:01:29 2024 UTC