php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44186 connection_status() returns always 0
Submitted: 2008-02-20 14:16 UTC Modified: 2008-03-25 14:01 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: zulcss at ubuntu dot com Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 5.2.5 OS: Ubuntu
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: zulcss at ubuntu dot com
New email:
PHP Version: OS:

 

 [2008-02-20 14:16 UTC] zulcss at ubuntu dot com
Description:
------------
When using php in fastcgi mode, it does not detect any user abort. connection_status() always return 0, even after user aborts connection.

Reproduce code:
---------------
<?
ignore_user_abort(true);

echo "hello";
flush();
sleep(10);
echo "bye"

$fp=fopen('/tmp/conection_log.txt','a');
fputs($fp,'Connection status is: '.connection_status()."\n");
fclose($fp);
?>

Expected result:
----------------
Return 0

Actual result:
--------------
Not return 0.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-25 14:00 UTC] jani@php.net
When you tell PHP in first line of your script to ignore user abort, of course the script continues normally and abort IS ignored. No bug here.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 22:01:27 2024 UTC