Bug #15692 Updated: ISAPI fputs \n = \r\n
| From: | jakub at icewarp dot com | Date: | Mon, 25 Feb 2002 21:08:55 +0000 |
| Subject: | Bug #15692 Updated: ISAPI fputs \n = \r\n | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-1031@lists.php.net to get a copy of this message | ||
ID: 15692
Updated by: jakub@icewarp.com
-Summary: ISAPI fputs \n = \r\n
Reported By: jakub@icewarp.com
-Status: Feedback
+Status: Open
Bug Type: Filesystem function related
Operating System: Any Windows platform
PHP Version: 4.1.1
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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