From ecd50e32cfb34d7c6ed9439c5d49cb980fde8551 Mon Sep 17 00:00:00 2001 From: J0WI Date: Tue, 5 Jun 2018 18:43:28 +0200 Subject: [PATCH] Add hint to install PECL extensions in series (#1243) --- php/content.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/php/content.md b/php/content.md index e21e66346..c34286180 100644 --- a/php/content.md +++ b/php/content.md @@ -146,6 +146,10 @@ For example, `memcached-2.2.0` has no PHP version constraints (https://pecl.php. Beyond the compatibility issue, it's also a good practice to ensure you know when your dependencies receive updates and can control those updates directly. +Unlike PHP core extensions, PECL extensions should be installed in series to fail properly if something went wrong. Otherwise errors are just skipped by PECL. + +For example, `pecl install memcached-2.2.0 && pecl install redis-2.2.8` instead of `pecl install memcached-2.2.0 redis-2.2.8`. However, `docker-php-ext-enable memcached redis` is fine to be all in one command. + ### Other extensions Some extensions are not provided via either Core or PECL; these can be installed too, although the process is less automated: