Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -477,12 +477,12 @@ if [ -n "$PHP_FPM_INCLUDES" ] ; then
done
fi

install_composer_deps "${BUILD_DIR}" "${CACHE_DIR}" "${ENV_DIR}"

if [ "$PHP_BUILDPACK_NO_NODE" != "true" ] ; then
install_node_deps "$BUILD_DIR"
fi

install_composer_deps "${BUILD_DIR}" "${CACHE_DIR}" "${ENV_DIR}"

# Detect PHP framework
# Set FRAMEWORK if not set in environment by user
if [ -z "$FRAMEWORK" ]; then
Expand Down
33 changes: 33 additions & 0 deletions support/ext/sqlsrv
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/env bash

set -e

if [ -n "$DEBUG" ]; then
set -x
fi

sqlsrv_version="5.12.0"

curl -L "https://pecl.php.net/get/sqlsrv-${sqlsrv_version}.tgz" \
| tar xzv

cd sqlsrv-${sqlsrv_version}
/app/vendor/php/bin/phpize
./configure --with-php-config=/app/vendor/php/bin/php-config

make
cp modules/sqlsrv.so "$EXT_DIR/sqlsrv.so"
echo "extension=sqlsrv.so" > "$PREFIX/etc/conf.d/sqlsrv.ini"

pdo_sqlsrv_version="5.12.0"

curl -L "https://pecl.php.net/get/pdo_sqlsrv-${pdo_sqlsrv_version}.tgz" \
| tar xzv

cd pdo_sqlsrv-${pdo_sqlsrv_version}
/app/vendor/php/bin/phpize
./configure --with-php-config=/app/vendor/php/bin/php-config

make
cp modules/pdo_sqlsrv.so "$EXT_DIR/pdo_sqlsrv.so"
echo "extension=pdo_sqlsrv.so" > "$PREFIX/etc/conf.d/pdo_sqlsrv.ini"