php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42930 Support for Oracle Instantclient 11g is missing
Submitted: 2007-10-11 16:16 UTC Modified: 2007-10-11 16:22 UTC
From: jens at chaos-co dot de Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 4.4.7 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jens at chaos-co dot de
New email:
PHP Version: OS:

 

 [2007-10-11 16:16 UTC] jens at chaos-co dot de
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*) ;;


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-11 16:22 UTC] johannes@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

PHP 4 wo't get support for anything new. But I think the PECL OCI8 module works with PHP 4 so you might try using that instead of the bundled extensions. See Http://pecl.php.net
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Nov 10 20:01:29 2024 UTC