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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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