ID: 36081
User updated by: bashusr at gmail dot com
Reported By: bashusr at gmail dot com
-Status: Feedback
+Status: Open
Bug Type: IIS related
Operating System: Windows 2003
PHP Version: 4.4.2
New Comment:
I wrote a test script just for this purpose:
<?php
echo "hey";
$handler=fopen("tmp.txt","w");
while(true) {
fwrite($handler, "Hey\n");
}
?>
The echo _should_ be enough to display data for connections aborted. In
any case, i hit the "stop" button... and the script continues to run
taking 100% cpu time and the tmp.txt grows indefinitely.
In case it is of any use, I am on windows 2003 using php through ISAPI.
Previous Comments:
------------------------------------------------------------------------
[2006-01-20 09:21:10] [EMAIL PROTECTED]
Try with some other script which does NOT pipe anything anywhere..
------------------------------------------------------------------------
[2006-01-20 08:12:59] bashusr at gmail dot com
yes, it does output data to the browser. My mistake, i forgot to
mention that after the data is piped to the program, the stdout is
piped into the browser.
------------------------------------------------------------------------
[2006-01-20 08:10:35] [EMAIL PROTECTED]
Your page needs to output data to _browser_.
------------------------------------------------------------------------
[2006-01-20 01:58:02] bashusr at gmail dot com
yes, my outputs data...
It pipes data through proc_open to a process in 8 or 16 kb chunks. It
should stop sending data to my process and close it when the connection
is aborted... I will try some tests with this function.
------------------------------------------------------------------------
[2006-01-20 00:25:00] [EMAIL PROTECTED]
Does your script output anything..?
See also the user notes here:
http://www.php.net/manual/en/function.connection-aborted.php
------------------------------------------------------------------------
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/36081
--
Edit this bug report at http://bugs.php.net/?id=36081&edit=1