Skip to content

Commit 761d0c6

Browse files
committed
Fix first element being removed from $PATHEXT
See https://github.com/xp-framework/core/pull/279/files#r709533545
1 parent c4ff732 commit 761d0c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/php/xp/lambda/Docker.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ private function resolve($commands) {
1717
clearstatcache();
1818

1919
// PATHEXT is in form ".{EXT}[;.{EXT}[;...]]"
20-
$extensions= [''] + explode(PATH_SEPARATOR, getenv('PATHEXT'));
20+
$extensions= array_merge([''], explode(PATH_SEPARATOR, getenv('PATHEXT')));
2121
$paths= $paths= explode(PATH_SEPARATOR, getenv('PATH'));
2222
foreach ($commands as $command) {
2323

0 commit comments

Comments
 (0)