Closed
Description
Symfony/Process version(s) affected: 4.1.4
Description
PHP 7.3 allow unlink()
'locked' file at Pipes/WindowsPipes.php#L57 and return true
.
In result if start 2 processes one by one, second process will delete file of previous one.
Possible this is error in PHP, but I can't create good bug report for PHP developers.
How to reproduce
I use fastest
to use with phpunit in async mode. If run 2+ tests, first always return error.
Possible Solution
before for ($i = 0;; ++$i) {
add
if (!isset($GLOBALS["sf_proc_i"]))
$GLOBALS["sf_proc_i"] = 0;
else
$GLOBALS["sf_proc_i"]++;
$i =& $GLOBALS["sf_proc_i"];
if ($i > 1024)
$i = 0;
plus replace for ($i = 0;; ++$i) {
on for (;; ++$i) {
Additional context
no