Edit report at https://bugs.php.net/bug.php?id=60586&edit=1
ID: 60586
Comment by: sauvant at aspera dot com
Reported by: sauvant at aspera dot com
Summary: ignore_user_abort=true has no effect on IIS with
FastCGI
Status: Feedback
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:
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
Previous Comments:
------------------------------------------------------------------------
[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] [email protected]
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');
}
}
?>
------------------------------------------------------------------------
[2012-06-25 05:29:50] [email protected]
btw: I can not reproduce this with nginx
------------------------------------------------------------------------
[2012-06-25 05:27:08] [email protected]
How did you identify it doesn't work?
I mean, could you give us a more specific description?
------------------------------------------------------------------------
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