#23163 [Opn->Fbk]: connection_aborted() doesn't work
| From: | sniper@php.net | Date: | Wed, 23 Apr 2003 08:42:18 +0000 |
| Subject: | #23163 [Opn->Fbk]: connection_aborted() doesn't work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-38157@lists.php.net to get a copy of this message | ||
ID: 23163
Updated by: sniper@php.net
Reported By: lapo at lapo dot it
-Status: Open
+Status: Feedback
Bug Type: Scripting Engine problem
Operating System: Windows 2000
PHP Version: 4.3.2RC1
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2003-04-11 04:31:16] lapo at lapo dot it
I have a long running script with the following "core"
set_time_limit(60000);
ignore_user_abort(true); // also tried without
ob_implicit_flush();
$query = mssql_query('SELECT lotsarows') or die('Error.');
while($row = mssql_fetch_array($query)) {
//do things
mssql_query('UPDATE onerow') or die('Error.');
//do things
flush();
if(connection_aborted())
die();
}
But it seems to not stop on user abort.
(I can see the DB is being updated after pressing STOP in the browser)
Using Apache2.0 on Win32 (Win2000) and PHP-4.3.2-RC1
This seems similiar to #2929 but doesn't depend on flush() presence...
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23163&edit=1