Bug #15692 Updated: ISAPI fputs \n = \r\n
| From: | sander@php.net | Date: | Thu, 06 Jun 2002 09:37:38 +0000 |
| Subject: | Bug #15692 Updated: ISAPI fputs \n = \r\n | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-9611@lists.php.net to get a copy of this message | ||
ID: 15692
Updated by: sander@php.net
Reported By: jakub@icewarp.com
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: Any Windows platform
PHP Version: 4.1.1
New Comment:
PHP on Windows converts \n to \r\n in output, and \r\n to \n in input.
Not a bug, expected behaviour.
Previous Comments:
------------------------------------------------------------------------
[2002-02-25 16:08:54] jakub@icewarp.com
You are certainly right it works with the "B" flag. However I wonder
why the CGI module works different than ISAPI (both without "B"). It's
not a problem I just wanted to let you know.
Thank you
Cheers
Jakub
------------------------------------------------------------------------
[2002-02-25 05:55:19] hholzgra@php.net
how do you open $file? have you used the "b" mode character to enforce
binary safe output?
------------------------------------------------------------------------
[2002-02-23 18:51:52] jakub@icewarp.com
The PHP.EXE CGI treats this code snippet:
...
fwrite($file, "\r\n");
...
exactly as expected. However the ISAPI.DLL version
converts "\n" to "\r\n" so the real output in the file is:
"\r\r\n"
Is there a place in the source code where I can make the ISAPI filter
to be compiled without the conversion? I think it's a bug anyway.
Thank you
Cheers
Jakub
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15692&edit=1