Bug #76872 [Fbk->NoF]: proc_open() broken parallel working commands
| From: | cmb@php.net | Date: | Sun, 18 Nov 2018 22:36:16 +0000 |
| Subject: | Bug #76872 [Fbk->NoF]: proc_open() broken parallel working commands | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-218020@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76872&edit=1
ID: 76872
Updated by: cmb@php.net
Reported by: sailormax at inbox dot lv
Summary: proc_open() broken parallel working commands
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: *General Issues
Operating System: Windows 10
PHP Version: 7.3.0beta3
Block user comment: N
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2018-09-12 18:16:08] ab@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2018-09-12 14:12:39] sailormax at inbox dot lv
Description:
------------
I can't find concrete the problem but have errors when trying to use
fastest
(https://github.com/liuggio/fastest) to run parallel phpunit tests. With php7.3 it start to return
errcode 1 with some parallel processes.
Windows even does not register these broken executions. I look via AnVir Task Manager / Log. Here I
can see list of all executed commands.
Possible problem in work with file handlers. unlink() can remove file, which in use by
another proc_open(), but fopen() can't after this create new file.
in vendor/symphony/process/Pipes/WindowsPipes.php:60 for second test fopen($file, 'xb')
return null and can't create file, but file at this moment is not exists because was removed by
57 line.
This is new bug. PHP <=7.2 work as expected.
Test script:
---------------
run command in Git's bash:
command: phpunit-tests | head -2 | vendor/bin/fastest --preserve-order -v "phpunit {}"
Where phpunit-tests return list of tests.
Expected result:
----------------
Both tests successfully executed.
AnVir Task Manager / Log / record about both executed test commands.
Actual result:
--------------
First test always is broken, but second successfully executed.
AnVir Task Manager / Log / only 1 record about successful executed test command.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76872&edit=1