Threaded::from

(PECL pthreads >= 2.0.9) Creation public Threaded Threaded::from ( Closure $run [, Closure $construct [, array $args ]] ) Creates an anonymous Threaded object from closures Parameters: run The closure to use for ::run construct The constructor to use for anonymous object args The arguments to pass

Threaded::extend

(PECL pthreads >= 2.0.8) Runtime Manipulation public bool Threaded::extend ( string $class ) Makes thread safe standard class at runtime Parameters: class The class to extend Returns: A boolean indication of success Examples: Runtime inheritance <?php class My {}

Threaded::count

(PECL pthreads >= 2.0.0) Manipulation public integer Threaded::count ( void ) Returns the number of properties for this object Returns: Examples: Counting the properties of an object <?php $safe = new Threaded(); while (count($safe) < 10) {     $safe[] = count($safe); } var_dump(count($safe)); ?> The above

Threaded::chunk

(PECL pthreads >= 2.0.0) Manipulation public array Threaded::chunk ( integer $size, boolean $preserve ) Fetches a chunk of the objects property table of the given size, optionally preserving keys Parameters: size The number of items to fetch preserve Preserve the keys of members, by default false Returns: An

system

(PHP 4, PHP 5, PHP 7) Execute an external program and display the output string system ( string $command [, int &$return_var ] ) system() is just like the C version of the function in that it executes the given command and outputs the result. The system() call also tries to automatically flush the web server's output buffer after each line of output if PHP is running as a server module. If you need to execute a comma

shell_exec

(PHP 4, PHP 5, PHP 7) Execute command via shell and return the complete output as a string string shell_exec ( string $cmd ) This function is identical to the backtick operator. Parameters: cmd The command that will be executed. Returns: The output from the executed command or NULL if an error occurred or the command produces no output. Note:

proc_terminate

(PHP 5, PHP 7) Kills a process opened by proc_open bool proc_terminate ( resource $process [, int $signal = 15 ] ) Signals a process (created using proc_open()) that it should terminate. proc_terminate() returns immediately and does not wait for the process to terminate. proc_terminate() allows you terminate the process and continue with other tasks. You may poll the process (to see if it has stopped yet) by using the pro

proc_open

(PHP 4 >= 4.3.0, PHP 5, PHP 7) Execute a command and open file pointers for input/output resource proc_open ( string $cmd, array $descriptorspec, array &$pipes [, string $cwd [, array $env [, array $other_options ]]] ) proc_open() is similar to popen() but provides a much greater degree of control over the program execution. Parameters: cmd The command to execute

proc_nice

(PHP 5, PHP 7) Change the priority of the current process bool proc_nice ( int $increment ) proc_nice() changes the priority of the current process by the amount specified in increment. A positive increment will lower the priority of the current process, whereas a negative increment will raise the priority. proc_nice() is not related to proc_open() and its associated functions in any way. Parameters:

proc_get_status

(PHP 5, PHP 7) Get information about a process opened by proc_open() array proc_get_status ( resource $process ) proc_get_status() fetches data about a process opened using proc_open(). Parameters: process The proc_open() resource that will be evaluated. Returns: An array of collected information on success, and FALSE on failure. The returned arr