Skip to content

Commit e440ad8

Browse files
committed
fix: Update
1 parent 8e8b134 commit e440ad8

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Dockerfiles/mods/Dockerfile-8.5

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -586,16 +586,17 @@ RUN set -eux \
586586
# && pecl install pdo_sqlsrv \
587587
# Installation: Version specific
588588
# Type: GIT extension
589-
&& git clone https://github.com/microsoft/msphpsql /tmp/msphpsql \
590-
&& cd /tmp/msphpsql \
589+
&& pecl download pdo_sqlsrv-5.12.0 \
590+
&& tar xzf pdo_sqlsrv-5.12.0.tgz \
591+
&& cd pdo_sqlsrv-5.12.0 \
591592
&& sed -i 's/= dbh->error_mode/= (enum pdo_error_mode) dbh->error_mode/' pdo_dbh.cpp \
592593
&& 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 \
593594
# Default: Install command
594595
&& phpize \
595596
&& ./configure --with-php-config=$(which php-config) \
596597
&& make -j$(getconf _NPROCESSORS_ONLN) \
597598
&& make install \
598-
&& cd /tmp && rm -rf /tmp/msphpsql \
599+
&& cd - && rm -rf pdo_sqlsrv-* \
599600
# Enabling
600601
&& docker-php-ext-enable pdo_sqlsrv \
601602
&& true

0 commit comments

Comments
 (0)