#44093 [Com]: ignore_user_abort() sometimes do not work !
| From: | pcdinh at gmail dot com | Date: | Sat, 26 Apr 2008 13:50:13 +0000 |
| Subject: | #44093 [Com]: ignore_user_abort() sometimes do not work ! | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-124532@lists.php.net to get a copy of this message | ||
ID: 44093
Comment by: pcdinh at gmail dot com
Reported By: max at tehnomir dot com dot ua
Status: No Feedback
Bug Type: *General Issues
Operating System: Linux 2.6.20.2
PHP Version: 5.2.5
New Comment:
This bug remains still. I can reproduce it on PHP 5.2.5 and latest PHP
5.3dev (Windows XP SP2)
Maximum execution time of 60 seconds exceeded in
D:\webroot\bugs\44093.php
Previous Comments:
------------------------------------------------------------------------
[2008-04-02 01:00:02] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2008-03-25 14:01:43] jani@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.2-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.2-win32-installer-latest.msi
------------------------------------------------------------------------
[2008-02-10 19:57:36] max at tehnomir dot com dot ua
Description:
------------
Hello !
ignore_user_abort( false ) sometimes do not work !
In this example when I press STOP button in my browser script does not
stop. It runs till max_execution_time is reached.
Server: 1.3.39.
Reproduce code:
---------------
<?
ignore_user_abort( false );
$fp = fopen('testfile.txt', 'w');
while (true)
{
echo date('d.m.Y H:i')."<br>";
flush();
fwrite($fp, date('d.m.Y H:i:s')."\n");
sleep( 1 );
}
fclose( $fp );
?>
Expected result:
----------------
Script must stop execution.
Actual result:
--------------
Script runs till max_execution_time is reached.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44093&edit=1