Skip to content

Commit 97104d5

Browse files
authored
Merge pull request #237 from mlocati/fix-reading-configure-options-from-file-descriptor-stream
Fix reading configure options from file description streams
2 parents ea757d2 + 6251806 commit 97104d5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Base/Abstracts/Console/Command/BuildCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ protected function buildOptions(Package $package, InputInterface $input, OutputI
105105
throw new Exception("File '{$force_opts}' is unusable");
106106
}
107107

108+
if (DIRECTORY_SEPARATOR !== '\\' && preg_match('_^/dev/fd/\d+$_', $force_opts)) {
109+
// https://bugs.php.net/bug.php?id=53465
110+
$force_opts = str_replace('/dev/', 'php://', $force_opts);
111+
}
108112
$force_opts = preg_replace(',\\s+,', ' ', file_get_contents($force_opts));
109113

110114
return [null, $force_opts];

0 commit comments

Comments
 (0)