Преглед на файлове

[Process] remove fork references as proc_* functions start a command from an independant process, does not copy the parent memory space like pcntl_* function

Thomas преди 14 години
родител
ревизия
66ddacf2e5
променени са 2 файла, в които са добавени 5 реда и са изтрити 5 реда
  1. 2 2
      src/Symfony/Component/Process/PhpProcess.php
  2. 3 3
      src/Symfony/Component/Process/Process.php

+ 2 - 2
src/Symfony/Component/Process/PhpProcess.php

@@ -12,7 +12,7 @@ namespace Symfony\Component\Process;
  */
 
 /**
- * PhpProcess runs a PHP script in a forked process.
+ * PhpProcess runs a PHP script in an independent process.
  *
  * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
  */
@@ -41,7 +41,7 @@ class PhpProcess extends Process
     }
 
     /**
-     * Forks and run the process.
+     * run the process.
      *
      * @param Closure|string|array $callback A PHP callback to run whenever there is some
      *                                       output available on STDOUT or STDERR

+ 3 - 3
src/Symfony/Component/Process/Process.php

@@ -13,7 +13,7 @@ namespace Symfony\Component\Process;
 
 /**
  * Process is a thin wrapper around proc_* functions to ease
- * the forking processes from PHP.
+ * start independent PHP processes.
  *
  * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
  */
@@ -60,11 +60,11 @@ class Process
     }
 
     /**
-     * Forks and run the process.
+     * run the process.
      *
      * The callback receives the type of output (out or err) and
      * some bytes from the output in real-time. It allows to have feedback
-     * from the forked process during execution.
+     * from the independent process during execution.
      *
      * If you don't provide a callback, the STDOUT and STDERR are available only after
      * the process is finished via the getOutput() and getErrorOutput() methods.