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
Have you experienced this issue?
Rate the importance of this bug to you:

 [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 23 10:01:29 2024 UTC