Edit report at https://bugs.php.net/bug.php?id=60586&edit=1
ID: 60586
Updated by: aharvey@php.net
Reported by: sauvant at aspera dot com
Summary: ignore_user_abort=true has no effect on IIS with
FastCGI
-Status: Feedback
+Status: Open
Type: Bug
Package: IIS related
Operating System: Windows Server 2008 R2
PHP Version: 5.3.8
Block user comment: N
Private report: N
New Comment:
A pull request or patch would be much appreciated, I'm sure. :)
Previous Comments:
------------------------------------------------------------------------
[2012-12-06 12:43:25] rainer at dueckerhoff dot de
This bug still persists in the latest 5.3 version after about a year of this bug
report.
Any chance that it could be fixed or any explanation on why it doesn't work with
IIS but with Apache (and thus cannot be fixed)? Or at least a workaround?
Cheers,
Rainer
------------------------------------------------------------------------
[2012-07-10 12:32:43] sauvant at aspera dot com
There is a thread at the IIS forum, too: http://forums.iis.net/t/1190270.aspx
No feedback at all :-(
Is the issue described PHP or IIS related?
Any opinions?
Anybody able to reproduce?
Best regards
Keith
------------------------------------------------------------------------
[2012-06-25 15:00:50] lars_teuber at gmx dot de
Microsoft-IIS/7.5. Best regards, Lars.
------------------------------------------------------------------------
[2012-06-25 14:54:00] laruence@php.net
you mean IIS or nginx? thanks :)
------------------------------------------------------------------------
[2012-06-25 14:45:35] lars_teuber at gmx dot de
Please find reproduce script below. The script stops whenever there is output send to a browser that
is no longer listening. It will continue to run until you send anything. Best regards, Lars.
<?php
# reproduce for https://bugs.php.net/bug.php?id=60586
ignore_user_abort(true);
$path = sys_get_temp_dir() . '\\ignore_user_abort_' . date('Ymd_His', time());
echo $path;
flush();
$seconds = 30;
$time = time();
$i = 0;
while (time() - $time < $seconds) {
echo '. ';
flush();
$i++;
}
write_file($path, 'finished (' . $i . ' iterations)');
function write_file($path, $message)
{
$handle = fopen($path, 'wb');
if (!$handle) {
throw new Exception('fopen() failed');
}
if (fwrite($handle, $message) === false) {
fclose($handle);
throw new Exception('fwrite() failed');
}
if (!fclose($handle)) {
throw new Exception('fclose() failed');
}
}
?>
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=60586--
Edit this bug report at https://bugs.php.net/bug.php?id=60586&edit=1