Skip to content

Commit b180a89

Browse files
Merge branch '3.4' into 4.4
* 3.4: [Process] Fix Permission Denied error when writing sf_proc_00 lock files on Windows fix handling null as empty data No need to create an issue when creating a PR [Console] Fixes question input encoding on Windows
2 parents a39907a + 721cceb commit b180a89

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Pipes/WindowsPipes.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ public function __construct($input, bool $haveReadSupport)
5656
$file = sprintf('%s\\sf_proc_%02X.%s', $tmpDir, $i, $name);
5757

5858
if (!$h = fopen($file.'.lock', 'w')) {
59+
if (file_exists($file.'.lock')) {
60+
continue 2;
61+
}
5962
restore_error_handler();
6063
throw new RuntimeException('A temporary file could not be opened to write the process output: '.$lastError);
6164
}

0 commit comments

Comments
 (0)