Bug #16194 Updated: register_shutdown_function

From: Date: Thu, 21 Mar 2002 10:12:56 +0000
Subject: Bug #16194 Updated: register_shutdown_function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-3032@lists.php.net to get a copy of this message
ID: 16194 Updated by: hholzgra@php.net Reported By: nizzt@zerospace.org Status: Open Bug Type: Apache related Operating System: Redhat Linux 7.2 PHP Version: 4.1.2 New Comment: the connection is closed by either the webserver or the client software, not by php you can use connection_status() to detect the cause for the script termination if you still have a connection then your script terminated normaly, if you don't then the client terminated the connection (or the net infrastructure droped it) see also: http://php.net/ignore_user_abort Previous Comments: ------------------------------------------------------------------------ [2002-03-20 18:39:14] nizzt@zerospace.org register_shutdown_function doesn't close the connection to the browser when called on RedHat 7.2 Linux PHP 4.1.2. Example: <?php function test() { echo "In test connection_status: " . connection_status() . "<BR>\n"; } register_shutdown_function("test"); echo "In script connection_status: " . connection_status() . "<BR>\n"; ?> END<BR> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16194&edit=1

« previous php.bugs (#3032) next »