[php-src] Issue #10106: connection_status and connection_aborted does not work

From: Date: Thu, 15 Dec 2022 11:31:19 +0000
Subject: [php-src] Issue #10106: connection_status and connection_aborted does not work
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-243151@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/10106
Author: seltix5

From manual page: https://php.net/function.connection-status

Hi,
I tested this using PHP 7.4 but it does not detect disconnect, I try to stop and close the browser.

```
<?php
ignore_user_abort(true);
set_time_limit(0);

while(1)
{
    echo "\n";
    ob_flush();
    flush();

    // Did the connection fail?
    if(connection_status() != CONNECTION_NORMAL)
    {
        break;
    }

    sleep(1);
}
```

---


Thread (1 message)

  • seltix5
« previous php.bugs (#243151) next »