oci8

Extension for Oracle Database


The OCI8 extension lets you access Oracle Database.

Use 'pecl install oci8' to install for PHP 8.

Use 'pecl install oci8-2.2.0' to install for PHP 7.

Use 'pecl install oci8-2.0.12' to install for PHP 5.2 - PHP 5.6.

Use 'pecl install oci8-1.4.10' to install for PHP 4.3.9 - PHP 5.1.

The OCI8 extension can be linked with Oracle client libraries from Oracle Database 10.2 or later. These libraries are found in your database installation, or in the free Oracle Instant Client from https://www.oracle.com/database/technologies/instant-client.html.

Oracle's standard cross-version connectivity applies. For example, PHP OCI8 linked with Instant Client 19c can connect to Oracle Database 11.2 onward. See Oracle's note "Oracle Client / Server Interoperability Support" (ID 207303.1) for details.

License: PHP

Latest releases

Version Release Download
3.0.1 2020-12-21 oci8-3.0.1.tgz
3.0.0 2020-11-26 oci8-3.0.0.tgz
2.2.0 2018-12-10 oci8-2.2.0.tgz
2.1.8 2017-10-18 oci8-2.1.8.tgz
2.1.7 2017-08-15 oci8-2.1.7.tgz
Show all releases

Changelog

Version Message
3.0.1 This version is for PHP 8 only.

Updated Windows build environment to build with newer Oracle Client libraries. (cmb)
3.0.0 This version is for PHP 8 only.

Deprecated old OCI8 function aliases. (Jens de Nies)

Removed obsolete no-op function oci_internal_debug(). (Jens de Nies)

The OCI-Lob class is now called OCILob for standards compliance.

The OCI-Collection class is now called OCICollection for standards compliance.

Generate arginfo from function stubs. (Jens de Nies)
2.2.0 This version is for PHP 7 only.
Added oci_set_call_timeout() for call timeouts. (Requires Oracle client libraries 18c or later)
Added oci_set_db_operation() for the Oracle Database 'DBOP' end-to-end-tracing attribute. (Requires Oracle 12.2 or later)
Fixed bug #76804 (oci_pconnect with OCI_CRED_EXT not working). (KoenigsKind)
Fixed installation on PHP 7.3.
Internal change: Convert some parameter parsing to the Fast Parameter Parsing API.
2.1.8 This version is for PHP 7 only.
Fixed reference counting and memory issues. (Dmitry, Tianfang)
2.1.7 This version is for PHP 7 only.
Added oci_unregister_taf_callback()
Show complete changelog