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
 [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

Pull Requests

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC