PHP 4.0 Bug #5646: fwrite() in CGI php.exe doesn't make a CR/LF for "\n" but just a linefeed char

From: Date: Mon, 17 Jul 2000 20:42:16 +0000
Subject: PHP 4.0 Bug #5646: fwrite() in CGI php.exe doesn't make a CR/LF for "\n" but just a linefeed char
Groups: php.dev 
Request: Send a blank email to php-dev+get-24824@lists.php.net to get a copy of this message
From: joel@intwebservices.com Operating system: WINDOWS NT 4.0 PHP version: 4.0.1pl2 PHP Bug Type: Misbehaving function Bug description: fwrite() in CGI php.exe doesn't make a CR/LF for "\n" but just a linefeed char $dataStr="text data"."\n"; $writeSuccess=fwrite ($textFilehandle, $dataStr); The log file will have just a HEX "0a" char instead of HEX "0D 0A" . It worked ok for the ISAPI module but when I switched to the CGI php I noticed the difference.

« previous php.dev (#24824) next »