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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Tue Apr 23 08:01:30 2024 UTC