#23163 [NEW]: connection_aborted() doesn't work
| From: | lapo at lapo dot it | Date: | Fri, 11 Apr 2003 09:31:16 +0000 |
| Subject: | #23163 [NEW]: connection_aborted() doesn't work | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-37558@lists.php.net to get a copy of this message | ||
From: lapo at lapo dot it
Operating system: Windows 2000
PHP version: 4.3.2RC1
PHP Bug Type: Scripting Engine problem
Bug description: connection_aborted() doesn't work
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 bug report at http://bugs.php.net/?id=23163&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23163&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23163&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23163&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23163&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23163&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23163&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23163&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23163&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23163&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23163&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23163&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23163&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23163&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23163&r=gnused