Skip to content

Commit 6fbbc95

Browse files
committed
Added pdo_dblib extension for PHP 8.1
1 parent 44cc009 commit 6fbbc95

4 files changed

Lines changed: 17 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- Added `amqp` extension for PHP 8.0 and PHP 8.1 (#826)[https://github.com/cytopia/devilbox/issues/826]
1414
- Added `uploadprogress` extension for PHP 8.0 and PHP 8.1
1515
- Added `xlswriter` extension for PHP 8.1
16+
- Added `pdo_dblib` extension for PHP 8.1
1617

1718

1819
## Release 0.130

Dockerfiles/mods/Dockerfile-8.1

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ RUN set -eux \
1111
&& DEBIAN_FRONTEND=noninteractive apt-get install -q -y --no-install-recommends --no-install-suggests \
1212
alien \
1313
firebird-dev \
14+
freetds-dev \
1415
libaio-dev \
1516
libavif-dev \
1617
libbz2-dev \
@@ -332,6 +333,16 @@ RUN set -eux \
332333
&& true
333334

334335

336+
# -------------------- Installing PHP Extension: pdo_dblib --------------------
337+
RUN set -eux \
338+
# Generic pre-command
339+
&& ln -s /usr/lib/x86_64-linux-gnu/libsybdb.* /usr/lib/ \
340+
# Installation: Generic
341+
# Type: Built-in extension
342+
&& docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) pdo_dblib \
343+
&& true
344+
345+
335346
# -------------------- Installing PHP Extension: pdo_firebird --------------------
336347
RUN set -eux \
337348
# Installation: Generic
@@ -672,6 +683,7 @@ RUN set -eux \
672683
libpng16-16 \
673684
libpq5 \
674685
librabbitmq4 \
686+
libsybdb5 \
675687
libtidy5deb1 \
676688
libvpx6 \
677689
libwebp6 \
@@ -798,6 +810,8 @@ RUN set -eux \
798810
&& php-fpm -m | grep -oiE '^pcre$' \
799811
&& php -m | grep -oiE '^pdo$' \
800812
&& php-fpm -m | grep -oiE '^pdo$' \
813+
&& php -m | grep -oiE '^pdo_dblib$' \
814+
&& php-fpm -m | grep -oiE '^pdo_dblib$' \
801815
&& php -m | grep -oiE '^pdo_firebird$' \
802816
&& php-fpm -m | grep -oiE '^pdo_firebird$' \
803817
&& php -m | grep -oiE '^pdo_mysql$' \

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ Check out this table to see which Docker image provides what PHP modules.
685685
<tr>
686686
<th>8.1</th>
687687
<td id="81-base">Core, ctype, curl, date, dom, FFI, fileinfo, filter, ftp, hash, iconv, json, libxml, mbstring, mysqlnd, openssl, pcre, PDO, pdo_sqlite, Phar, posix, readline, Reflection, session, SimpleXML, sodium, SPL, sqlite3, standard, tokenizer, xml, xmlreader, xmlwriter, zlib</td>
688-
<td id="81-mods">amqp, apcu, bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, enchant, exif, FFI, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, igbinary, imap, intl, json, ldap, libxml, mbstring, memcache, memcached, mongodb, msgpack, mysqli, mysqlnd, OAuth, oci8, openssl, pcntl, pcre, PDO, PDO_Firebird, pdo_mysql, PDO_OCI, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, psr, readline, redis, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, sodium, solr, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, uploadprogress, xdebug, xlswriter, xml, xmlreader, xmlwriter, xsl, yaml, Zend OPcache, zip, zlib</td>
688+
<td id="81-mods">amqp, apcu, bcmath, bz2, calendar, Core, ctype, curl, date, dba, dom, enchant, exif, FFI, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, igbinary, imap, intl, json, ldap, libxml, mbstring, memcache, memcached, mongodb, msgpack, mysqli, mysqlnd, OAuth, oci8, openssl, pcntl, pcre, PDO, pdo_dblib, PDO_Firebird, pdo_mysql, PDO_OCI, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, psr, readline, redis, Reflection, session, shmop, SimpleXML, snmp, soap, sockets, sodium, solr, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, uploadprogress, xdebug, xlswriter, xml, xmlreader, xmlwriter, xsl, yaml, Zend OPcache, zip, zlib</td>
689689
</tr>
690690
</tbody>
691691
</table>

build/ansible/group_vars/all/mods.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ extensions_available:
724724
pdo:
725725
already_avail: "{{ php_all_versions }}"
726726
pdo_dblib:
727-
disabled: [8.1] # php: symbol lookup error: pdo_dblib.so: undefined symbol: dbinit
727+
disabled: []
728728
all:
729729
type: builtin
730730
pre: ln -s /usr/lib/x86_64-linux-gnu/libsybdb.* /usr/lib/

0 commit comments

Comments
 (0)