Skip to content

Commit

Permalink
Add support for oci8 and pdo_oci extensions no longer bundled with PHP
Browse files Browse the repository at this point in the history
Test: oci8, pdo_oci
  • Loading branch information
mlocati committed Mar 1, 2024
1 parent a285464 commit a366052
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion install-php-extensions
Original file line number Diff line number Diff line change
Expand Up @@ -2002,7 +2002,7 @@ installOracleInstantClient() {
mv "$installOracleInstantClient_src" "$ORACLE_INSTANTCLIENT_LIBPATH"
echo 'done.'
fi
if ! test -e "$ORACLE_INSTANTCLIENT_LIBPATH/sdk"; then
if ! test -e "$ORACLE_INSTANTCLIENT_LIBPATH/sdk" && ! test -L "$ORACLE_INSTANTCLIENT_LIBPATH/sdk"; then
printf 'Downloading Oracle Instant SDK v%s... ' "$installOracleInstantClient_version"
installOracleInstantClient_src="$(getPackageSource $installOracleInstantClient_sdk)"
ln -sf "$installOracleInstantClient_src/sdk" "$ORACLE_INSTANTCLIENT_LIBPATH/sdk"
Expand Down Expand Up @@ -3207,6 +3207,14 @@ installRemoteModule() {
fi
fi
;;
oci8 | pdo_oci)
installOracleInstantClient
if test "$installRemoteModule_module" = oci8; then
addConfigureOption with-oci8 "instantclient,$ORACLE_INSTANTCLIENT_LIBPATH"
elif test "$installRemoteModule_module" = pdo_oci; then
addConfigureOption with-pdo-oci "instantclient,$ORACLE_INSTANTCLIENT_LIBPATH"
fi
;;
opencensus)
if test -z "$installRemoteModule_version"; then
installRemoteModule_version=alpha
Expand Down

0 comments on commit a366052

Please sign in to comment.