RE: [PHP-DEV] 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 21:01:01 +0000
Subject: RE: [PHP-DEV] 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-24827@lists.php.net to get a copy of this message
Correct me if I'm wrong, but isn't \n just LF while \r is CR? So if you want CR/LF you need to do: $dataStr="text data"."\r\n"; $writeSuccess=fwrite ($textFilehandle, $dataStr); If it "worked" in the ISAPI module version, I suspect that the real bug report would be that fwrite was adding characters to the output when it runs as ISAPI. Tim -----Original Message----- From: joel@intwebservices.com [mailto:joel@intwebservices.com] Sent: Monday, July 17, 2000 4:42 PM To: php-dev@lists.php.net Subject: [PHP-DEV] PHP 4.0 Bug #5646: fwrite() in CGI php.exe doesn't make a CR/LF for "\n" but just a linefeed char 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. -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.dev (#24827) next »