Skip to content

Commit b8a1f5c

Browse files
committed
fix: Update pdo_sqlsrv
1 parent a097250 commit b8a1f5c

3 files changed

Lines changed: 3 additions & 16 deletions

File tree

Dockerfiles/mods/Dockerfile-8.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ RUN set -eux \
560560
# Installation: Generic
561561
# Type: PECL extension
562562
# Default: Pecl command
563-
&& pecl install pdo_sqlsrv \
563+
&& pecl install pdo_sqlsrv-5.12.0 \
564564
# Enabling
565565
&& docker-php-ext-enable pdo_sqlsrv \
566566
&& true

Dockerfiles/mods/Dockerfile-8.2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ RUN set -eux \
543543
# Installation: Generic
544544
# Type: PECL extension
545545
# Default: Pecl command
546-
&& pecl install pdo_sqlsrv \
546+
&& pecl install pdo_sqlsrv-5.12.0 \
547547
# Enabling
548548
&& docker-php-ext-enable pdo_sqlsrv \
549549
&& true

Dockerfiles/mods/Dockerfile-8.5

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -578,20 +578,7 @@ RUN set -eux \
578578
# Installation: Generic
579579
# Type: PECL extension
580580
# Default: Pecl command
581-
# && pecl install pdo_sqlsrv \
582-
# Installation: Version specific
583-
# Type: GIT extension
584-
&& pecl download pdo_sqlsrv-5.12.0 \
585-
&& tar xzf pdo_sqlsrv-5.12.0.tgz \
586-
&& cd pdo_sqlsrv-5.12.0 \
587-
&& sed -i 's/= dbh->error_mode/= (enum pdo_error_mode) dbh->error_mode/' pdo_dbh.cpp \
588-
&& sed -i 's/zval_ptr_dtor( &dbh->query_stmt_zval );/OBJ_RELEASE(dbh->query_stmt_obj);dbh->query_stmt_obj=NULL;/' php_pdo_sqlsrv_int.h \
589-
# Default: Install command
590-
&& phpize \
591-
&& ./configure --with-php-config=$(which php-config) \
592-
&& make -j$(getconf _NPROCESSORS_ONLN) \
593-
&& make install \
594-
&& cd - && rm -rf pdo_sqlsrv-* \
581+
&& pecl install pdo_sqlsrv \
595582
# Enabling
596583
&& docker-php-ext-enable pdo_sqlsrv \
597584
&& true

0 commit comments

Comments
 (0)