Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
Name: php-pear-PHP_Fork | Distribution: Mageia |
Version: 0.3.2 | Vendor: Mageia.Org |
Release: 11.mga8 | Build date: Wed Feb 12 09:16:44 2020 |
Group: Development/PHP | Build host: localhost |
Size: 53539 | Source RPM: php-pear-PHP_Fork-0.3.2-11.mga8.src.rpm |
Packager: umeabot <umeabot> | |
Url: http://pear.php.net/package/PHP_Fork | |
Summary: Horde alarm libraries |
PHP_Fork class. Wrapper around the pcntl_fork() stuff with a API set like Java language. Practical usage is done by extending this class, and re-defining the run() method. [see basic example] This way 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: o void setVariable($name, $value) o mixed getVariable($name) $name must be a valid PHP variable name; $value must be a variable or a serializable object. Resources (db connections, streams, etc.) cannot be serialized and so they're not correctly handled. Requires PHP build with --enable-cli --with-pcntl --enable-shmop. Only runs on *NIX systems, because Windows lacks of the pcntl ext. @example browser_pool.php an interactive tool to perform multiple cuncurrent request over an URL. @example simple_controller.php shows how to attach a controller to started pseudo-threads. @example exec_methods.php shows a workaround to execute methods into the child process. @example passing_vars.php shows variable exchange between the parent process and started pseudo-threads. @example basic.php a basic example, only two pseudo-threads that increment a counter simultaneously.
PHP License
* Wed Feb 12 2020 umeabot <umeabot> 0.3.2-11.mga8 + Revision: 1499156 - Mageia 8 Mass Rebuild * Wed Sep 19 2018 umeabot <umeabot> 0.3.2-10.mga7 + Revision: 1273766 - Mageia 7 Mass Rebuild
/usr/share/doc/php-pear-PHP_Fork /usr/share/doc/php-pear-PHP_Fork/examples /usr/share/doc/php-pear-PHP_Fork/examples/basic.php /usr/share/doc/php-pear-PHP_Fork/examples/browser_pool.php /usr/share/doc/php-pear-PHP_Fork/examples/exec_methods.php /usr/share/doc/php-pear-PHP_Fork/examples/passing_vars.php /usr/share/doc/php-pear-PHP_Fork/examples/simple_controller.php /usr/share/pear/PHP /usr/share/pear/PHP/Fork.php /var/lib/pear/PHP_Fork.xml
Generated by rpm2html 1.8.1
Fabrice Bellet, Sun Oct 13 08:20:58 2024