|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-10-11 16:22 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 12:00:01 2025 UTC |
Description: ------------ In php 4.4.7, the support for oracle instantclient 11g is missing. Reproduce code: --------------- './configure' \ '--enable-track-vars' \ '--with-apxs2=/usr/local/httpd-2.2.6-php4/bin/apxs' \ '--with-config-file-path=/usr/local/httpd-2.2.6-php4/conf/' \ '--enable-sigchild' \ '--with-oci8-instant-client=/opt/instantclient_11_1/' \ Expected result: ---------------- Runs through the configure and found the lib. Actual result: -------------- Exit on the detection. Patch: --- configure 2007-05-03 15:51:44.000000000 +0200 +++ configure.patched 2007-10-11 18:02:06.000000000 +0200 @@ -66047,13 +66047,27 @@ { echo "configure: error: Oracle Instant Client library version not supported" 1>&2; exit 1; } fi else - { echo "configure: error: Oracle Instant Client libraries not found" 1>&2; exit 1; } + if test -f $PHP_OCI8_INSTANT_CLIENT/libnnz11.$SHLIB_SUFFIX_NAME; then + if test -f $PHP_OCI8_INSTANT_CLIENT/libclntsh.$SHLIB_SUFFIX_NAME.11.1; then + if test ! -f $PHP_OCI8_INSTANT_CLIENT/libclntsh.$SHLIB_SUFFIX_NAME; then + { echo "configure: error: Link from $PHP_OCI8_INSTANT_CLIENT/libclntsh.$SHLIB_SUFFIX_NAME to libclntsh.$SHLIB_SUFFIX_NAME.11.1 not found" 1>&2; exit 1; } + fi + OCI8_VERSION=11.1 + else + { echo "configure: error: Oracle Instant Client library version not supported" 1>&2; exit 1; } + fi + else + { echo "configure: error: Oracle Instant Client libraries not found" 1>&2; exit 1; } + fi fi + echo "$ac_t""$OCI8_VERSION" 1>&6 + + case $OCI8_VERSION in - 10.1) - + 10.1|11.1) + case clntsh in c|c_r|pthread*) ;;