#22810 [Opn->Csd]: Incorrectly writes out data.
| From: | gfraley5 at earthlink dot net | Date: | Tue, 15 Apr 2003 01:41:27 +0000 |
| Subject: | #22810 [Opn->Csd]: Incorrectly writes out data. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-37676@lists.php.net to get a copy of this message | ||
ID: 22810
User updated by: gfraley5 at earthlink dot net
Reported By: gfraley5 at earthlink dot net
-Status: Open
+Status: Closed
Bug Type: Filesystem function related
-Operating System: Windows XP
+Operating System: Windows XP / Linux
PHP Version: 4.3.2 latest build
New Comment:
I was finally able to isolate the code that was causing this. I
submitted the actual problem here http://bugs.php.net/?id=23201&edit=2
and it should be fixed in the next CVS.
Previous Comments:
------------------------------------------------------------------------
[2003-04-02 21:00:07] gfraley5 at earthlink dot net
It crashes Apache on Windows 2000 also
------------------------------------------------------------------------
[2003-03-30 23:11:02] gfraley5 at earthlink dot net
Just tried the 330 cvs and Apache is still crashing.
------------------------------------------------------------------------
[2003-03-25 19:06:53] gfraley5 at earthlink dot net
I just downloaded the latest CVS and tried my application under it.
Now, something between my php code, Apache, and this latest CVS is
causing Apache.exe to crash.
------------------------------------------------------------------------
[2003-03-25 18:07:22] gfraley5 at earthlink dot net
Thank you for correcting the snippet I tried to put together to
minimize the amount of code to submit the bug. However, in my full
code the error is there and my code works fine in all previous releases
back to 4.1. I am not arguing with you, just stating a fact. I will
try to redefine the error/bug. I am curious, however, as to why the
code runs correctly under 4.3.1?
------------------------------------------------------------------------
[2003-03-25 17:50:24] iliaa@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Your code has a bug, I've revised your code and now the output is
identical to the input. It should be noted that even before any
modifications the generated output was indetical to the one of PHP
4.2.3
Here is the revised write code:
$fp = fopen("out",'w') or die("Problem");
$prefx = "<? Header(\"HTTP/1.0 403 Forbidden\");exit; ?>\n";
$csv_out = implode(',', $gcf);
fwrite($fp,$prefx.$csv_out);
fclose($fp);
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/22810
--
Edit this bug report at http://bugs.php.net/?id=22810&edit=1