File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments