Merge branch '2.7' into 2.8
This commit is contained in:
commit
aa494d8df3
@ -48,12 +48,11 @@ class WindowsPipes extends AbstractPipes
|
||||
//
|
||||
// @see https://bugs.php.net/bug.php?id=51800
|
||||
$this->files = array(
|
||||
Process::STDOUT => tempnam(sys_get_temp_dir(), 'sf_proc_stdout'),
|
||||
Process::STDERR => tempnam(sys_get_temp_dir(), 'sf_proc_stderr'),
|
||||
Process::STDOUT => tempnam(sys_get_temp_dir(), 'out_sf_proc'),
|
||||
Process::STDERR => tempnam(sys_get_temp_dir(), 'err_sf_proc'),
|
||||
);
|
||||
foreach ($this->files as $offset => $file) {
|
||||
$this->fileHandles[$offset] = fopen($this->files[$offset], 'rb');
|
||||
if (false === $this->fileHandles[$offset]) {
|
||||
if (false === $file || false === $this->fileHandles[$offset] = fopen($file, 'rb')) {
|
||||
throw new RuntimeException('A temporary file could not be opened to write the process output to, verify that your TEMP environment variable is writable');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user