PHP OCI8 2.1.2 (for PHP 7) and OCI8 2.0.12 (for PHP 5.2+) have been uploaded to PECL. The OCI8 extension allows PHP applications to connect to Oracle Database.
pecl install oci8 to install PHP OCI8 2.1 for PHP 7.
pecl install oci8-2.0.12 to install PHP OCI8 2.0 for PHP 5.2 - PHP 5.6. Note: PHP 5.6 is the oldest release which the PHP community is maintaining.
As well as being available from PECL, PHP OCI8 is also included in the base PHP bundles. OCI8 2.0.12 will be included in PHP 5.6.26. OCI8 2.1.2 will be included in PHP 7.0.11 and PHP 7.1.
The changes are:
Fixed an invalid handle error with Implicit Result Sets. (OCI8 2.0.12 and 2.1.2)
Fixed bug #72524 (Binding null values triggers ORA-24816 error) (OCI8 2.1).
This necessarily reverts a change in PHP 7 (OCI8 2.1) back to match PHP 5's (OCI8 2.0) behavior. If you had PHP 7 code that was not specifying a size for OUT binds, then you will need to modify your code. Passing a
oci_bind_by_name() for OUT binds remains the documented and recommended best practice.
Several internal code tidy ups (OCI8 2.1).