1
0
Fork 0
mirror of https://github.com/mlocati/docker-php-extension-installer synced 2025-05-09 00:22:40 +00:00

New supported extensions for PHP 8.0: odbc

This commit is contained in:
Michele Locati 2020-12-09 10:56:20 +01:00
parent 8f3ff464da
commit a23eec221e
No known key found for this signature in database
GPG key ID: 98B7CE2E7234E28B
2 changed files with 7 additions and 9 deletions

View file

@ -1035,14 +1035,12 @@ installBundledModule() {
fi
;;
odbc)
if test $PHP_MAJMIN_VERSION -le 704; then
docker-php-source extract
cd /usr/src/php/ext/odbc
phpize
sed -ri 's@^ *test +"\$PHP_.*" *= *"no" *&& *PHP_.*=yes *$@#&@g' configure
./configure --with-unixODBC=shared,/usr
cd - >/dev/null
fi
docker-php-source extract
cd /usr/src/php/ext/odbc
phpize
sed -ri 's@^ *test +"\$PHP_.*" *= *"no" *&& *PHP_.*=yes *$@#&@g' configure
./configure --with-unixODBC=shared,/usr
cd - >/dev/null
;;
pdo_odbc)
docker-php-ext-configure pdo_odbc --with-pdo-odbc=unixODBC,/usr