#44093 [NEW]: ignore_user_abort() sometimes do not work !

From: Date: Sun, 10 Feb 2008 19:57:36 +0000
Subject: #44093 [NEW]: ignore_user_abort() sometimes do not work !
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-122159@lists.php.net to get a copy of this message
From:             max at tehnomir dot com dot ua
Operating system: Linux 2.6.20.2
PHP version:      5.2.5
PHP Bug Type:     *General Issues
Bug description:  ignore_user_abort() sometimes do not work !

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 bug report at http://bugs.php.net/?id=44093&edit=1
-- 
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=44093&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44093&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44093&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44093&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44093&r=fixedcvs
Fixed in release:             http://bugs.php.net/fix.php?id=44093&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44093&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44093&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44093&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44093&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44093&r=notwrong
Not enough info:              http://bugs.php.net/fix.php?id=44093&r=notenoughinfo
Submitted twice:              http://bugs.php.net/fix.php?id=44093&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44093&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=44093&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=44093&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44093&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44093&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44093&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44093&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44093&r=mysqlcfg


Thread (11 messages)

« previous php.bugs (#122159) next »