ID: 10069
Updated by: hholzgra
Old-Status: Open
Status: Closed
Bug Type: Filesystem function related
Assigned To: 

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] [EMAIL PROTECTED]
When I run PHP 4.0.4pl1 as apache module on my Windows 2000 ADV Server, I got the 
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
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

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to