Skip to content

Commit 939b972

Browse files
committed
Improve bug60602.phpt portability
On NixOS we need to inherit the PATH variable so we can actually resolve the location of ls. Closes GH-20206
1 parent 02c67b4 commit 939b972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/tests/streams/bug60602.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $descs = array(
99
2 => array('pipe', 'w'), // strerr
1010
);
1111

12-
$environment = array('test' => array(1, 2, 3));
12+
$environment = array('test' => array(1, 2, 3), 'PATH' => getenv('PATH'));
1313

1414
$cmd = (substr(PHP_OS, 0, 3) == 'WIN') ? 'dir' : 'ls';
1515
$p = proc_open($cmd, $descs, $pipes, '.', $environment);

0 commit comments

Comments
 (0)