Skip to content

Commit

Permalink
[Process] Fix input reset in WindowsPipes
Browse files Browse the repository at this point in the history
Unsetting the input property causes an E_NOTICE error when the
property is checked on line 249 (and is likely unintentional anyway).
  • Loading branch information
mpajunen committed Jan 6, 2015
1 parent eabc9b8 commit 4e941e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Process/Pipes/WindowsPipes.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ private function write($blocking, $close)
if (false === $data || (true === $close && feof($r['input']) && '' === $data)) {
// no more data to read on input resource
// use an empty buffer in the next reads
unset($this->input);
$this->input = null;
}
}

Expand Down

0 comments on commit 4e941e3

Please sign in to comment.