#44093 [Opn->Fbk]: ignore_user_abort() sometimes do not work !
| From: | jani@php.net | Date: | Tue, 25 Mar 2008 14:01:46 +0000 |
| Subject: | #44093 [Opn->Fbk]: ignore_user_abort() sometimes do not work ! | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-123612@lists.php.net to get a copy of this message | ||
ID: 44093
Updated by: jani@php.net
Reported By: max at tehnomir dot com dot ua
-Status: Open
+Status: Feedback
Bug Type: *General Issues
Operating System: Linux 2.6.20.2
PHP Version: 5.2.5
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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