PHP 8.4: OCI8 and PDO-OCI extensions from PHP Core to PECL
The oci8
and pdo_oci8
extensions provide functionality to use Oracle databases in PHP. These extensions rely on proprietary libraries from commercial vendor Oracle.
These extensions have undergone an extensive period of accumulated unfixed bugs. Further, these extensions require a considerable effort to migrate their resource
objects to class objects.
Given these extensions' reliance on third-party proprietary libraries, and required maintenance efforts, oci8
and pdo_oci8
extensions are no longer part of the PHP core, and moved to PECL as oci8
and pdo_oci
.
The --with-pdo-oci
and --with-oci8
configure flags are no longer supported in PHP 8.4. Passing them to the ./configure
script results in a warning:
configure: WARNING: unrecognized options: --with-pdo-oci
configure: WARNING: unrecognized options: --with-oci8
Replacements for OCI8
and PDO_OCI
extensions
PHP applications that need to use the functionality provided by oci8
and pdo_oci
extensions can install these extensions from PECL:
pecl install oci8
pecl install pdo_oci