Browse Source

[Process] fixed phpdoc

Pascal Borreli 15 years ago
parent
commit
a21004a886

+ 3 - 1
src/Symfony/Components/Process/PhpProcess.php

@@ -63,7 +63,9 @@ class PhpProcess extends Process
   /**
    * Returns the PHP binary path.
    *
-   * return string The PHP binary path
+   * @return string The PHP binary path
+   *
+   * @throws \RuntimeException When defined PHP_PATH is not executable or not found
    */
   static public function getPhpBinary()
   {

+ 4 - 0
src/Symfony/Components/Process/Process.php

@@ -41,6 +41,8 @@ class Process
    * @param string  $stdin       The STDIN content
    * @param integer $timeout     The timeout in seconds
    * @param array   $options     An array of options for proc_open
+   *
+   * @throws \RuntimeException When proc_open is not installed
    */
   public function __construct($commandline, $cwd, array $env = array(), $stdin = null, $timeout = 60, array $options = array())
   {
@@ -75,6 +77,8 @@ class Process
    *                                       output available on STDOUT or STDERR
    *
    * @return integer The exit status code
+   *
+   * @throws \RuntimeException When process can't be launch or is stopped
    */
   public function run($callback = null)
   {