From 3454c8f7d7caee5b90998ae45ae7a8734ac4815c Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Sun, 16 Feb 2020 18:28:30 +0100 Subject: [PATCH] Add support for oauth extension --- data/supported-extensions | 1 + install-php-extensions | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/data/supported-extensions b/data/supported-extensions index 921cbc5..a69724b 100644 --- a/data/supported-extensions +++ b/data/supported-extensions @@ -30,6 +30,7 @@ msgpack 5.5 5.6 7.0 7.1 7.2 7.3 7.4 mssql 5.5 5.6 mysql 5.5 5.6 mysqli 5.5 5.6 7.0 7.1 7.2 7.3 7.4 +oauth 5.5 5.6 7.0 7.1 7.2 7.3 7.4 odbc 5.5 5.6 7.0 7.1 7.2 7.3 7.4 opcache 5.5 5.6 7.0 7.1 7.2 7.3 7.4 opencensus 7.0 7.1 7.2 7.3 7.4 diff --git a/install-php-extensions b/install-php-extensions index 8e51b80..d192b96 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -428,6 +428,16 @@ buildRequiredPackageLists() { buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libsybdb5" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile freetds-dev" ;; + oauth@alpine) + if test $buildRequiredPackageLists_phpv -ge 700; then + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile pcre-dev" + fi + ;; + oauth@debian) + if test $buildRequiredPackageLists_phpv -ge 700; then + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libpcre3-dev" + fi + ;; odbc@alpine) buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent unixodbc" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile unixodbc-dev" @@ -1107,6 +1117,11 @@ installPECLModule() { installPECLModule_actual="$2-0.5.7" fi ;; + oauth) + if test $1 -le 506; then + installPECLModule_actual="$2-1.2.3" + fi + ;; opencensus) if test $1 -le 702; then installPECLModule_actual="$2-alpha"