The leading edge of scripting languages and Oracle Database brought to you by the Data Access Development team

  • php
    December 12, 2015

PHP 7 OCI8 2.1.0 available on PECL

Christopher Jones
Senior Principal Product Manager

I've released PHP 7 OCI8 2.1 on PECL and simultaneously made a patch release OCI8 2.0.10 which is compatible with PHP 5.2 - PHP 5.6.

To install OCI8 for PHP 7 use:

pecl install oci8

This installs OCI8 2.1 which, as I'm sure you can guess, had a lot of internal changes to make it compatible with the vastly changed internals of PHP 7.

If you want to install OCI8 for PHP 5.2, 5.3, 5.4, or 5.6 use:

pecl install oci8-2.0.10

Functionality in 2.0.10 and 2.1.0 is equivalent. They both contain the fix for bug 68298, an overflow when binding 64bit numbers.

[Update: Windows DLLs have been built.] At time of writing, Windows DLLs were not yet built on PECL. If you need them, you can grab them from the full PHP Windows bundle.

Join the discussion

Comments ( 6 )
  • Anderson Costa Monday, December 14, 2015

    Thank you for release of the OCI8 for the PHP 7. It's very welcome! :)

  • guest Monday, December 14, 2015

    You're welcome.

  • Gilberto Nunes Ferreira Thursday, June 29, 2017

    What about PDO for PHP7???

  • Chris Jones Thursday, June 29, 2017
    PDO_OCI is included in PHP 7 bundles. This is the same as it was for PHP 5.

    The bundles are available on http://php.net/downloads.php
  • jjardit Saturday, January 13, 2018
    I'm failed to install on ubuntu 16.04.3

    This is the error messages

    configure: WARNING: OCI8 extension: ORACLE_HOME is not set, looking for default Oracle Instant Client instead
    checking Oracle Instant Client directory... configure: error: Oracle Instant Client directory /usr/lib/oracle/.../client64/lib libraries not found. Try --with-oci8=instantclient,DIR
    ERROR: `/tmp/pear/temp/oci8/configure --with-php-config=/usr/bin/php-config --with-oci8' failed

    Please help
  • Christopher Jones Sunday, January 14, 2018
    @jjardit Please post questions in the help forum https://community.oracle.com/community/database/developer-tools/php
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.