From 11f97c8b6c422762c5a8ca7829ab9bcc7b7ba3ab Mon Sep 17 00:00:00 2001 From: Aleksandr Fedotov Date: Wed, 12 Jan 2022 14:36:36 +0300 Subject: [PATCH] Support serialize for apcu (#486) Test: apcu, igbinary, igbinary+apcu --- install-php-extensions | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install-php-extensions b/install-php-extensions index 2e527f0..9e58b95 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -403,6 +403,12 @@ sortModulesToInstall() { PHP_MODULES_TO_INSTALL="socket $PHP_MODULES_TO_INSTALL" PHP_MODULES_TO_INSTALL="${PHP_MODULES_TO_INSTALL% }" fi + # Some module installation may use apcu if available: move it before other modules + if stringInList 'apcu' "$PHP_MODULES_TO_INSTALL"; then + PHP_MODULES_TO_INSTALL="$(removeStringFromList 'apcu' "$PHP_MODULES_TO_INSTALL")" + PHP_MODULES_TO_INSTALL="apcu $PHP_MODULES_TO_INSTALL" + PHP_MODULES_TO_INSTALL="${PHP_MODULES_TO_INSTALL% }" + fi # In any case, first of all, we need to install composer if stringInList '@composer' "$PHP_MODULES_TO_INSTALL"; then PHP_MODULES_TO_INSTALL="$(removeStringFromList '@composer' "$PHP_MODULES_TO_INSTALL")"