8000 WindowsPipes is not compatible with php 7.3 · Issue #28655 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
WindowsPipes is not compatible with php 7.3 #28655
Closed
@SailorMax

Description

@SailorMax

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0