|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #74990 pcntl_fork do not exit
Submitted: 2017-07-26 03:34 UTC Modified: 2017-07-26 10:23 UTC
From: xltxlm at qq dot com Assigned:
Status: Not a bug Package: PCNTL related
PHP Version: 7.1.7 OS: Debian GNU/Linux 8 on docker
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:
From: xltxlm at qq dot com
New email:
PHP Version: OS:


 [2017-07-26 03:34 UTC] xltxlm at qq dot com
the test code run ok less than php 7.1.6 .

error on php 7.1.7

Test script:
$i = 0;
while ($i++ < 3) {
    $pid = pcntl_fork(); //创建子进程
    if ($pid == 0) {
        echo "$i.";

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-07-26 05:12 UTC] xltxlm at qq dot com
i'm sorry. it is not php 7.1.7's error.

it error because .
 [2017-07-26 10:23 UTC]
-Status: Open +Status: Not a bug
 [2017-07-26 10:23 UTC]
close as comment
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 06:01:34 2024 UTC