php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80675 parallel may cause maximum execution time exceeded error.
Submitted: 2021-01-27 09:39 UTC Modified: -
From: anustro at icloud dot com Assigned:
Status: Open Package: Unknown/Other Function
PHP Version: 7.4.14 OS: MacOS
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: anustro at icloud dot com
New email:
PHP Version: OS:

 

 [2021-01-27 09:39 UTC] anustro at icloud dot com
Description:
------------
parallel runtime cause the Maximum execution time of 30 seconds exceeded error sometimes in Nginx + FastCGI web environment.

Test script:
---------------
<?php

$runtime = new \parallel\Runtime();
$future = $runtime->run(function(){
    for ($i = 0; $i < 500; $i++)
        echo "*";
    return 'easy';
});

for ($i = 0; $i < 500; $i++) {
    echo ".";
}

printf("\nUsing \\parallel\\Runtime is %s\n", $future->value());


Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 17:01:30 2024 UTC