8000 merged branch xrstf/2.1 (PR #5687) · s7ntech/symfony@f152170 · GitHub
[go: up one dir, main page]

Skip to content

Commit f152170

Browse files
committed
merged branch xrstf/2.1 (PR symfony#5687)
This PR was merged into the 2.1 branch. Commits ------- 65cf3a0 added doc comments Discussion ---------- added doc comments --------------------------------------------------------------------------- by stof at 2012-10-06T11:27:23Z closing in favor of symfony#5686 which targets 2.0 --------------------------------------------------------------------------- by fabpot at 2012-10-06T12:38:17Z This one cannot be closed as it contains more phpdocs than in the 2.0 branch.
2 parents 60b5409 + 65cf3a0 commit f152170

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/Symfony/Component/Process/Process.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ public function setCommandLine($commandline)
653653
/**
654654
* Gets the process timeout.
655655
*
656-
* @return integer The timeout in seconds
656+
* @return integer|null The timeout in seconds or null if it's disabled
657657
*/
658658
public function getTimeout()
659659
{
@@ -666,6 +666,8 @@ public function getTimeout()
666666
* To disable the timeout, set this value to null.
667667
*
668668
* @param integer|null $timeout The timeout in seconds
669+
*
670+
* @throws \InvalidArgumentException if the timeout is negative
669671
*/
670672
public function setTimeout($timeout)
671673
{
@@ -764,11 +766,23 @@ public function setOptions(array $options)
764766
$this->options = $options;
765767
}
766768

769+
/**
770+
* Gets whether or not Windows compatibility is enabled
771+
*
772+
* This is true by default.
773+
*
774+
* @return Boolean
775+
*/
767776
public function getEnhanceWindowsCompatibility()
768777
{
769778
return $this->enhanceWindowsCompatibility;
770779
}
771780

781+
/**
782+
* Sets whether or not Windows compatibility is enabled
783+
*
784+
* @param Boolean $enhance
785+
*/
772786
public function setEnhanceWindowsCompatibility($enhance)
773787
{
774788
$this->enhanceWindowsCompatibility = (Boolean) $enhance;

0 commit comments

Comments
 (0)
0