#23163 [Fbk->NoF]: connection_aborted() doesn't work
| From: | sniper@php.net | Date: | Mon, 28 Apr 2003 16:17:29 +0000 |
| Subject: | #23163 [Fbk->NoF]: connection_aborted() doesn't work | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-38611@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: Feedback
+Status: No Feedback
Bug Type: Scripting Engine problem
Operating System: Windows 2000
PHP Version: 4.3.2RC1
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2003-04-23 03:42:17] sniper@php.net
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
------------------------------------------------------------------------
[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