|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79564 poll() cannot be interrupted
Submitted: 2020-05-04 07:58 UTC Modified: -
From: Assigned:
Status: Open Package: Streams related
PHP Version: master-Git-2020-05-04 (Git) OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2020-05-04 07:58 UTC]
------------ performs an unlimited loop on EINTR during polling. This means that it's not possible to interrupt the process using Ctrl+C.

To reproduce, run php -S localhost:8000 on

if (!empty($_GET['self'])) {
    echo 'content';
} else {
    echo file_get_contents('http://localhost:8000?self=1');

try to access http://localhost:8000/ and then try to exit the built-in server.


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-05-26 20:47 UTC]
The following pull request has been associated:

Patch Name: Don't continue polling on EINTR
On GitHub:
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 22 18:01:36 2024 UTC