Bug #14542: connection_status() does not return 2 on timeout

From: Date: Sun, 16 Dec 2001 07:22:59 +0000
Subject: Bug #14542: connection_status() does not return 2 on timeout
Groups: php.dev 
Request: Send a blank email to php-dev+get-73978@lists.php.net to get a copy of this message
From:             dward@maidencreek.com
Operating system: Solaris 7
PHP version:      4.1.0
PHP Bug Type:     Unknown/Other Function
Bug description:  connection_status() does not return 2 on timeout

It seems that when a script terminates due to a
timeout connection_status() returns 0 (and
connection_timeout() no longer exists).

When aborted by a user connection_status() does return 1.

Sample script:

<?PHP
set_time_limit(1);
register_shutdown_function("shutdown");

function shutdown(){
$status = connection_status();
$err = "Connection status ($status).\n";
error_log($err, 3, "/tmp/phpstatus.log");
}

while(true){
        echo ".";
}

?>

-- 
Edit bug report at: http://bugs.php.net/?id=14542&edit=1



Thread (1 message)

  • dward at maidencreek dot com
« previous php.dev (#73978) next »