#30785 [NoF->Bgs]: connection_status and connection_aborted not working.

From: Date: Tue, 18 Jan 2005 16:11:12 +0000
Subject: #30785 [NoF->Bgs]: connection_status and connection_aborted not working.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-72393@lists.php.net to get a copy of this message
ID: 30785 Updated by: sniper@php.net Reported By: chubchik at inbox dot ru -Status: No Feedback +Status: Bogus Bug Type: Apache2 related Operating System: RH Linux 9.0 PHP Version: 5.0.2 New Comment: Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. See bug #30301 Previous Comments: ------------------------------------------------------------------------ [2004-11-26 01:00:02] php-bugs at lists dot php dot net No feedback was provided for this bug for over a week, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2004-11-17 21:32:17] tony2001@php.net Again, please provide short but complete and working example script. ------------------------------------------------------------------------ [2004-11-17 21:17:36] chubchik at inbox dot ru <? class xxx{ public function __construct($host,$user,$password,$db) { register_shutdown_function(array(&$this,"db_transaction_cancel")); Ignore_User_Abort(True); } ...... public function db_transaction_cancel() { if(connection_aborted()){ $this->transaction_canceled = true; $this->raise_notice('Abbruch durch Browser: '.connection_aborted()); $this->__destruct(); } } } ?> ------------------------------------------------------------------------ [2004-11-14 23:13:07] tony2001@php.net Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try avoid embedding huge scripts into the report. ------------------------------------------------------------------------ [2004-11-14 22:11:25] chubchik at inbox dot ru Description: ------------ connection_status and connection_aborted not working. i tryed all posible scripts for both functions, but it returns always 0, but 1 should ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30785&edit=1

« previous php.bugs (#72393) next »