connection_status and connection_aborted does not work
Aperta
@gwanglst ci sta già lavorando.
Dal 15/12/2022.
Bug
Extension: standard
SAPI: litespeed
Status: Needs Triage
- Lingua principale
- C
- Stelle
- 40.4k
- Fork
- 8.1k
- Merge medio
- 2g 13h
- PR unite (30g)
- 96
Descrizione
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);
}
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.