Rasmus Lerdorf 6b2923f203 Merge pull request #49 from php/php86-support
Support PHP 8.6
2026-03-11 10:08:45 +00:00
2024-10-10 03:59:07 -04:00
2015-12-09 20:58:32 +00:00
2016-12-24 10:22:48 +01:00
2026-01-14 17:35:39 +06:00
2009-10-01 08:03:18 +00:00
2026-01-14 17:35:39 +06:00
2026-03-10 23:04:04 -04:00
2026-03-10 23:04:04 -04:00
2026-03-10 23:04:04 -04:00
2026-02-09 23:24:35 -05:00
2026-01-14 17:35:39 +06:00
2024-04-02 10:24:17 -07:00
2009-10-01 08:03:18 +00:00

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
The Gearman PHP Extension provides a wrapper to libgearman. This
gives the user the ability to write fully featured Gearman clients
and workers in PHP, allowing them to quickly develop distributed
applications.

For more information about Gearman, see: http://www.gearman.org/

Requirements
    * For the 0.8.* versions, libgearman v0.14 or greater
    * For the 1.0.* versions, libgearman v0.21 or greater
    * For the 1.1.* versions, libgearman v1.1.0 or greater
    * For the 2.0.* versions, testing is done against libgearman v1.1.8 and PHP 7.0-7.4
    * For the 2.1.* versions, testing is done against libgearman v1.1.18 and PHP 7.0-8.3

The Gearman PHP Extension requires the Gearman C server and library package
to be installed. You can download the latest from:

https://github.com/gearman/gearmand/releases

See the README file in that package for installation instructions. Once
it is installed you can compile the Gearman PHP Extension. You'll need
to make sure you have the PHP development packages installed first
(if you have 'phpize' command youre all set). You'll also probably
want the PHP command line interface installed as well (usually named
php-cli). After extracting the Gearman PHP tarball, just run:

phpize
./configure
make
make install

You then need to make PHP aware of the new extension by adding the
following line to your php.ini:

extension="gearman.so"

You can then test if the module is configured correctly with the
PHP cli:

php --info | grep gearman

To run a simple example

cd examples

1. Start the gearmand server in a separate terminal:

gearmand


2. In another terminal, change to this source directory and run:

php examples/reverse_worker.php


3. In another terminal, change to this source directory and run:

php examples/reverse_client.php


You should see some output from both the reverse client and worker
scripts about the status and then a final result.


Have fun!

http://pecl.php.net/package/gearman
Description
⚠️ ARCHIVED: Original GitHub repository no longer exists. Preserved as backup on 2026-01-22T16:23:25.351Z
Readme 1 MiB
Languages
C 60.1%
PHP 38.7%
M4 0.8%
Shell 0.4%