diff --git a/data/supported-extensions b/data/supported-extensions index 42eff12..775f4b0 100644 --- a/data/supported-extensions +++ b/data/supported-extensions @@ -78,6 +78,7 @@ pdo_pgsql 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 pdo_sqlsrv 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 pgsql 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 php_trie 7.3 7.4 8.0 8.1 8.2 +pq 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 propro 5.5 5.6 7.0 7.1 7.2 7.3 7.4 protobuf 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 pspell 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 diff --git a/install-php-extensions b/install-php-extensions index 399e833..2f92f05 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -566,6 +566,8 @@ sortModulesToInstall() { checkRequiredModule relay msgpack # relay requires igbinary checkRequiredModule relay igbinary + # pq requires raphf + checkRequiredModule pq raphf # Some module installation may use sockets if available: move it before other modules if stringInList 'sockets' "$PHP_MODULES_TO_INSTALL"; then PHP_MODULES_TO_INSTALL="$(removeStringFromList 'sockets' "$PHP_MODULES_TO_INSTALL")" @@ -596,6 +598,12 @@ sortModulesToInstall() { PHP_MODULES_TO_INSTALL="apcu $PHP_MODULES_TO_INSTALL" PHP_MODULES_TO_INSTALL="${PHP_MODULES_TO_INSTALL% }" fi + # Some module installation may use raphf if available: move it before other modules + if stringInList 'raphf' "$PHP_MODULES_TO_INSTALL"; then + PHP_MODULES_TO_INSTALL="$(removeStringFromList 'raphf' "$PHP_MODULES_TO_INSTALL")" + PHP_MODULES_TO_INSTALL="raphf $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")" @@ -1094,11 +1102,11 @@ buildRequiredPackageLists() { buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libfbclient2" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile firebird-dev libib-util" ;; - pgsql@alpine | pdo_pgsql@alpine) + pgsql@alpine | pdo_pgsql@alpine | pq@alpine) buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent postgresql-libs" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile postgresql-dev" ;; - pgsql@debian | pdo_pgsql@debian) + pgsql@debian | pdo_pgsql@debian | pq@debian) buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libpq5" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libpq-dev" ;; @@ -3071,6 +3079,10 @@ installRemoteModule() { mv "$installRemoteModule_src/include" /usr/local/include/hat-trie fi ;; + pq) + # pq must be loaded after raphf + installRemoteModule_ini_basename="xx-php-ext-$installRemoteModule_module" + ;; propro) if test -z "$installRemoteModule_version"; then if test $PHP_MAJMIN_VERSION -le 506; then