[Process] Fix incorrect parameter type

This commit is contained in:
bch36 2021-06-08 11:05:01 -05:00 committed by Nicolas Grekas
parent c17ed9ee5d
commit d1579a2922

View File

@ -71,7 +71,7 @@ class WindowsPipes extends AbstractPipes
} }
$this->lockHandles[$pipe] = $h; $this->lockHandles[$pipe] = $h;
if (!fclose(fopen($file, 'w')) || !$h = fopen($file, 'r')) { if (!($h = fopen($file, 'w')) || !fclose($h) || !$h = fopen($file, 'r')) {
flock($this->lockHandles[$pipe], \LOCK_UN); flock($this->lockHandles[$pipe], \LOCK_UN);
fclose($this->lockHandles[$pipe]); fclose($this->lockHandles[$pipe]);
unset($this->lockHandles[$pipe]); unset($this->lockHandles[$pipe]);