You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Component/Process/Pipes/WindowsPipes.php
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -52,17 +52,20 @@ public function __construct($input, $haveReadSupport)
52
52
Process::STDERR => Process::ERR,
53
53
);
54
54
$tmpDir = sys_get_temp_dir();
55
-
if (!@fopen($file = $tmpDir.'\\sf_proc_00.check', 'wb')) {
56
-
thrownewRuntimeException('A temporary file could not be opened to write the process output to, verify that your TEMP environment variable is writable');
if (!$e || false === strpos($e['message'], 'File exists')) {
65
+
restore_error_handler();
66
+
thrownewRuntimeException('A temporary file could not be opened to write the process output to, verify that your TEMP environment variable is writable');
67
+
}
68
+
}
66
69
if (!$h || !$this->fileHandles[$pipe] = fopen($file, 'rb')) {
67
70
continue2;
68
71
}
@@ -73,6 +76,7 @@ public function __construct($input, $haveReadSupport)
0 commit comments