Browse files

[Process] Fix disabling of timeout

  • Loading branch information...
1 parent 6827c41 commit eaa7dfea4de4cc77cf8c5bb227033b8bfe47b69c @asm89 committed Jul 11, 2012
Showing with 4 additions and 0 deletions.
  1. +2 −0 src/Symfony/Component/Process/Process.php
  2. +2 −0 src/Symfony/Component/Process/ProcessBuilder.php
View
2 src/Symfony/Component/Process/Process.php
@@ -595,6 +595,8 @@ public function getTimeout()
public function setTimeout($timeout)
{
if (null === $timeout) {
+ $this->timeout = null;
+
return null;
}
View
2 src/Symfony/Component/Process/ProcessBuilder.php
@@ -91,6 +91,8 @@ public function setInput($stdin)
public function setTimeout($timeout)
{
if (null === $timeout) {
+ $this->timeout = null;
+
return null;
}

0 comments on commit eaa7dfe

Please sign in to comment.