With the release of PHP 7 many heavily used extensions had to be ported to support the latest version. One extension I use heavily is the Gearman extension. This is a great extension for developing PHP applications that can process data in parallel and distribute their load over a network of servers.
But with the adoption of PHP 7, there is no ready made version that you can install—at least as far as I can tell. The maintainers have created a version that will work with PHP 7 which is fantastic, but it's a little tricky to install right now.
If you are using Docker and want to install the Gearman extension for PHP 7, check out the Dockerfile commands below:
# PHP Extension: Gearman # Download Gearman PECL extension for Gearman supporting PHP 7 RUN apt-get -y --allow-unauthenticated install \ libgearman-dev RUN cd /tmp \ && git clone https://github.com/wcgallego/pecl-gearman.git \ && cd pecl-gearman \ && git checkout gearman-2.0.3 \ && phpize \ && ./configure \ && make \ && make install # Link to Apache PHP version RUN echo "extension=/usr/lib/php/20160303/gearman.so" >> /etc/php/7.1/apache2/php.ini # Link to CLI version RUN echo "extension=/usr/lib/php/20160303/gearman.so" >> /etc/php/7.1/cli/php.ini
The last two commands are just enabling the extension with PHP. Depending on how you installed PHP in your image, you may need to tweak that part.