From:             jens at chaos-co dot de
Operating system: Linux 
PHP version:      4.4.7
PHP Bug Type:     OCI8 related
Bug description:  Support for Oracle Instantclient 11g is missing

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*) ;;


-- 
Edit bug report at http://bugs.php.net/?id=42930&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42930&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42930&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42930&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=42930&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=42930&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=42930&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=42930&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=42930&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=42930&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=42930&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=42930&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=42930&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=42930&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42930&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=42930&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=42930&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=42930&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42930&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=42930&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=42930&r=mysqlcfg

Reply via email to