Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Make PDO_OCI support ORACLE client v12.2

f9f613dd-25e2-4215-a9a4-915d13754bffMay 3 2017 — edited Jun 21 2017

compile php-5.6.30 First!

source:php-5.6.30\ext\pdo_oci

1) Edit File:config.m4

from:

PDO_OCI_IC_PREFIX="`echo $PDO_OCI_DIR | cut -d, -f2`"

PDO_OCI_IC_VERS="`echo $PDO_OCI_DIR | cut -d, -f3`"

   

to:

PDO_OCI_IC_PREFIX="`echo $PDO_OCI_DIR | cut -d, -f1`"

PDO_OCI_IC_VERS="`echo $PDO_OCI_DIR | cut -d, -f2`"

from:

  if test "$PHP_PDO_OCI" = "yes" || test -z "$PHP_PDO_OCI"; then

   

PDO_OCI_DIR=$ORACLE_HOME

  else

    PDO_OCI_DIR=$PHP_PDO_OCI

  Fi

to:

  if test "$PHP_PDO_OCI" = "yes" || test -z "$PHP_PDO_OCI"; then

    PDO_OCI_DIR=$PHP_PDO_OCI

  else

    PDO_OCI_DIR=$ORACLE_HOME

  Fi

from:

  case $PDO_OCI_VERSION in

    9.0|10.1|10.2|11.1|11.2|12.1)

to:

  case $PDO_OCI_VERSION in

    9.0|10.1|10.2|11.1|11.2|12.1|12.2)

2、compile

set ORACLE_HOME= /usr/lib/oracle/12.2/client64

cd php-5.6.30\ext\pdo_oci

      /usr/local/php/bin/phpize

     ./configure --with-php-config=/usr/local/php/bin/php-config --with-pdo-oci=shared,instantclient ,12.2

       make

       make install

Comments

Thanks for the reminder.

A better fix would be to remove the need to specify the version in the configure option, i.e. to align PDO_OCI config.m4 with OCI8's config.m4.

Note PHP 5 is in security-fix mode only, so any patch can only be applied to PHP 7.x

ytf-Oracle

Thank you for reminding us.

I have filed a PHP bug - 74537 and will work on a solution shortly.

ytf-Oracle

Hi,

We have fixed it in PHP 7.x.

https://bugs.php.net/bug.php?id=74537

1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 19 2017
Added on May 3 2017
3 comments
5,678 views