Bug #76872 [NEW]: proc_open() broken parallel working commands

From: Date: Wed, 12 Sep 2018 14:12:39 +0000
Subject: Bug #76872 [NEW]: proc_open() broken parallel working commands
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217015@lists.php.net to get a copy of this message
From: sailormax at inbox dot lv Operating system: Windows 10 PHP version: 7.3.0beta3 Package: *General Issues Bug Type: Bug Bug description:proc_open() broken parallel working commands 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 bug report at https://bugs.php.net/bug.php?id=76872&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76872&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76872&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76872&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76872&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76872&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76872&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76872&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76872&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76872&r=support Expected behavior: https://bugs.php.net/fix.php?id=76872&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76872&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76872&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76872&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76872&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76872&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76872&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76872&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76872&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76872&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76872&r=mysqlcfg

« previous php.bugs (#217015) next »