瀏覽代碼

[Process] fixed phpdoc

Pascal Borreli 15 年之前
父節點
當前提交
a21004a886
共有 2 個文件被更改,包括 7 次插入1 次删除
  1. 3 1
      src/Symfony/Components/Process/PhpProcess.php
  2. 4 0
      src/Symfony/Components/Process/Process.php

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

@@ -63,7 +63,9 @@ class PhpProcess extends Process
   /**
   /**
    * Returns the PHP binary path.
    * 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()
   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 string  $stdin       The STDIN content
    * @param integer $timeout     The timeout in seconds
    * @param integer $timeout     The timeout in seconds
    * @param array   $options     An array of options for proc_open
    * @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())
   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
    *                                       output available on STDOUT or STDERR
    *
    *
    * @return integer The exit status code
    * @return integer The exit status code
+   *
+   * @throws \RuntimeException When process can't be launch or is stopped
    */
    */
   public function run($callback = null)
   public function run($callback = null)
   {
   {