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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 04:01:29 2025 UTC