#37129 [Opn->Bgs]: ignore_user_abort not working

From: Date: Tue, 18 Apr 2006 21:24:50 +0000
Subject: #37129 [Opn->Bgs]: ignore_user_abort not working
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-95961@lists.php.net to get a copy of this message
ID: 37129 Updated by: tony2001@php.net Reported By: devrjason at gmail dot com -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Windows_NT PHP Version: 5.1.2 New Comment: PHP knows that the connectio was aborted only if it tries to write something to the buffer and fails. If you don't write anything to the buffer/screen - there is no way for PHP to know that. Previous Comments: ------------------------------------------------------------------------ [2006-04-18 21:21:38] devrjason at gmail dot com Description: ------------ Looks like bug #17265 broke again, but I was unable to add a comment to it since it's closed. This code doesn't stop running when the page is aborted. Reproduce code: --------------- $mcon = mysql_connect("localhost", "root", "*****") or die("mysql connect failed"); while (1) { sleep(3); $status = connection_status(); @mysql_query("insert into test.tests set charv='Connection status: $status'",$mcon); $status = connection_aborted(); @mysql_query("insert into test.tests set charv='Connection aborted: $status'",$mcon); } Expected result: ---------------- No more entries after script is aborted. Actual result: -------------- Script continues making entries until it times out. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37129&edit=1

« previous php.bugs (#95961) next »