Bug #16194 Updated: register_shutdown_function
| From: | hholzgra@php.net | Date: | Thu, 21 Mar 2002 10:14:00 +0000 |
| Subject: | Bug #16194 Updated: register_shutdown_function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-3033@lists.php.net to get a copy of this message | ||
ID: 16194
Updated by: hholzgra@php.net
Reported By: nizzt@zerospace.org
-Status: Open
+Status: Bogus
Bug Type: Apache related
Operating System: Redhat Linux 7.2
PHP Version: 4.1.2
New Comment:
once again forgot to change the status ...
Previous Comments:
------------------------------------------------------------------------
[2002-03-21 05:12:55] hholzgra@php.net
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
------------------------------------------------------------------------
[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