php with fastcgi does not detect user abort
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
Binary package hint: php5-cgi
This is related with php bug: http://
When using php in fastcgi mode, it does not detect any user abort. connection_status() always return 0, even after user aborts connection.
I'm using hardy. It's supposed to be solved in PHP 5.2 since May 2006, but perhaps hardy package 5.2.3-1ubuntu6.2 does not include the fix.
You can use this script to test the problem:
<?
ignore_
echo "hello";
flush();
sleep(10);
echo "bye"
$fp=fopen(
fputs($
fclose($fp);
If you press stop after loading the page (you will have time because the sleep 10), connection_status shouldn't be 0 at the end of the script.
I have checked with upstream PHP cvs and the fix is indeed included in our version in Hardy. Ill open another bug with upstream.
Thanks
chuck