php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16194 register_shutdown_function
Submitted: 2002-03-20 18:39 UTC Modified: 2002-03-21 05:14 UTC
From: nizzt at zerospace dot org Assigned:
Status: Not a bug Package: Apache related
PHP Version: 4.1.2 OS: Redhat Linux 7.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nizzt at zerospace dot org
New email:
PHP Version: OS:

 

 [2002-03-20 18:39 UTC] nizzt at zerospace dot 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>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-21 05:12 UTC] 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-21 05:14 UTC] hholzgra@php.net
once again forgot to change the status ...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jun 02 05:01:30 2024 UTC