Proposal for "PHP_Fork"

» Metadata » Status
» Description
Wrapper around the pcntl_fork() stuff with a API set like Java language.

PHP developers can enclose logic into a class that extends PHP_Fork, then execute the start() method that forks a child process.

Communications with the forked process is ensured by using a Shared Memory Segment; by using a user-defined signal and this shared memory developers can access to child process methods that returns a serializable variable.

The shared variable space can be accessed with the tho methods:

  1. void setVariable($name, $value)
  2. mixed getVariable($name)

Please keep mind of the system requirements

  1. Requires PHP build with --enable-cli --with-pcntl --enable-shmop.
  2. Only runs on *NIX systems, because Windows lacks of the pcntl ext.
» Dependencies » Links
» Timeline » Changelog
  • First Draft: 2004-02-13
  • Proposal: 2004-02-13
  • Call for Votes: 2004-03-05