connection_status and connection_aborted does not work
Đang mở
@gwanglst đang làm issue này rồi.
Từ ngày 15/12/2022.
Bug
Extension: standard
SAPI: litespeed
Status: Needs Triage
- Ngôn ngữ chính
- C
- Star
- 40.4k
- Fork
- 8.2k
- Merge trung bình
- 2 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 96
Mô tả
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);
}
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.