Skip to content

Commit 1dc3b4a

Browse files
committed
bug symfony#32187 [PHPUnit] Fixed composer error on Windows (misterx)
This PR was submitted for the 4.3 branch but it was merged into the 3.4 branch instead (closes symfony#32187). Discussion ---------- [PHPUnit] Fixed composer error on Windows | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Fixed tickets | symfony#31750 | License | MIT Fixes bug when composer runs from bat file that described in PATH env. Commits ------- 1f8927a Fixes windows error
2 parents 927a334 + 1f8927a commit 1dc3b4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/PhpUnit/bin/simple-phpunit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__
9595
$prevRoot = getenv('COMPOSER_ROOT_VERSION');
9696
putenv("COMPOSER_ROOT_VERSION=$PHPUNIT_VERSION.99");
9797
// --no-suggest is not in the list to keep compat with composer 1.0, which is shipped with Ubuntu 16.04LTS
98-
$exit = proc_close(proc_open("$COMPOSER install --no-dev --prefer-dist --no-progress --ansi", array(), $p, getcwd(), null, array('bypass_shell' => true)));
98+
$exit = proc_close(proc_open("$COMPOSER install --no-dev --prefer-dist --no-progress --ansi", array(), $p));
9999
putenv('COMPOSER_ROOT_VERSION'.(false !== $prevRoot ? '='.$prevRoot : ''));
100100
if ($exit) {
101101
exit($exit);

0 commit comments

Comments
 (0)