|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57454 PDO_OCI doesn't compile
Submitted: 2006-12-24 06:51 UTC Modified: 2007-05-04 13:58 UTC
From: brunofr at ioda dot net Assigned:
Status: Not a bug Package: PDO_OCI (PECL)
PHP Version: 5.2.2 STABLE OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: brunofr at ioda dot net
New email:
PHP Version: OS:


 [2006-12-24 06:51 UTC] brunofr at ioda dot net
When I try to compile php 5.2.0 (release sources) with instant client Oracle install it says

./configure --with-pdo-oci=shared,instantclient,/usr/lib/oracle/

checking checking if we're at 64-bit platform... no
checking OCI8 libraries dir... instantclient,/usr/lib/oracle/
checking for oci.h... /usr/lib/oracle/
configure: error: line 71685 Unsupported Oracle version!

The pdo, pdo-mysql and pdo-sqlite compile and work without issue.

The oci module work great too and doesn't complain. 

I've try to understand what's happen but without any success.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-26 05:37 UTC] brunofr at ioda dot net
i've managed how to compile it :
But this is the ugly way 
I've force PDO_OCI_VERSION=10.2 in configure line 71194 
and configure, make make install and phpinfo() seems all ok.

I think there's a big trouble with the version decode way in configure here 
  if test -s "$PDO_OCI_DIR/orainst/unix.rgs"; then
    PDO_OCI_VERSION=`grep '"ocommon"' $PDO_OCI_DIR/orainst/unix.rgs | sed 's/  */:/g' | cut -d: -f 6 | cut -c 2-4`
    test -z "$PDO_OCI_VERSION" && PDO_OCI_VERSION=7.3
  elif test -f $PDO_OCI_LIB_DIR/libclntsh.$SHLIB_SUFFIX_NAME.10.1; then
 [2007-05-04 13:14 UTC] brunofr at ioda dot net
Oracle instantclient & php 5.2.2
doesn't want to compile.

Is nobody looking at this ?
 [2007-05-04 13:58 UTC] tony2001 at phpclub dot net
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Dec 07 17:01:31 2023 UTC