PHP 4.0 Bug #10069 Updated: fread() / fputs() error with apache modules

From: Date: Fri, 30 Mar 2001 15:25:59 +0000
Subject: PHP 4.0 Bug #10069 Updated: fread() / fputs() error with apache modules
Groups: php.dev 
Request: Send a blank email to php-dev+get-50352@lists.php.net to get a copy of this message
ID: 10069 Updated by: hholzgra Reported By: chouyu@ithow.com Old-Status: Open Status: Closed Bug Type: Filesystem function related Assigned To: Comments: add the letter 'b' to your fopen argument string to enforce binary mode on DOS-based systems (it doesn't harm on unix systems) Previous Comments: --------------------------------------------------------------------------- [2001-03-29 21:13:09] chouyu@ithow.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 --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10069&edit=2

« previous php.dev (#50352) next »