From: Christopher Jones Date: Wed, 15 Jul 2020 04:35:14 +0000 (+1000) Subject: Bump OCI8 version to 3.0 so a PHP 8 PECL release can be made X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=80587762954fea1854ad54adaf5be6790ba2798c;p=php Bump OCI8 version to 3.0 so a PHP 8 PECL release can be made --- diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index e5aeafc7fe..6cd21d966c 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -41,6 +41,9 @@ #elif PHP_MAJOR_VERSION < 7 /* PHP 7 is the minimum supported version for OCI8 2.1 */ #error Use PHP OCI8 2.0 for your version of PHP +#elif PHP_MAJOR_VERSION < 8 +/* PHP 8 is the minimum supported version for OCI8 3.0 */ +#error Use PHP OCI8 2.2 for your version of PHP #endif #include "php_oci8.h" diff --git a/ext/oci8/package.xml b/ext/oci8/package.xml index b9366a1775..7d6c28501b 100644 --- a/ext/oci8/package.xml +++ b/ext/oci8/package.xml @@ -8,18 +8,19 @@ http://pear.php.net/dtd/package-2.0.xsd"> Extension for Oracle Database -Use the OCI8 extension to access Oracle Database. Use 'pecl install -oci8' 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 12, 11, or 10.2. These -libraries are found in your database installation, or in the free -Oracle Instant Client from -http://www.oracle.com/technetwork/database/features/instant-client/. -Oracle's standard cross-version connectivity applies. For example, -PHP OCI8 linked with Instant Client 11.2 can connect to Oracle -Database 9.2 onward. See Oracle's note "Oracle Client / Server -Interoperability Support" (ID 207303.1) for details. +The OCI8 extension let 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. Christopher Jones @@ -31,7 +32,7 @@ Interoperability Support" (ID 207303.1) for details. Tianfang Yang tianfyan tianfyan@php.net - yes + no Antony Dovgal @@ -52,12 +53,12 @@ Interoperability Support" (ID 207303.1) for details. no - 2018-12-11 + 2020-07-15 - 2.2.0 - 2.2.0 + 3.0.0 + 3.0.0 stable @@ -65,12 +66,13 @@ Interoperability Support" (ID 207303.1) for details. PHP -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. + 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) + + Generate arginfo from function stubs. (Jens de Nies) @@ -187,11 +189,6 @@ Internal change: Convert some parameter parsing to the Fast Parameter Parsing AP - - - - - @@ -214,7 +211,6 @@ Internal change: Convert some parameter parsing to the Fast Parameter Parsing AP - @@ -224,8 +220,6 @@ Internal change: Convert some parameter parsing to the Fast Parameter Parsing AP - - @@ -237,18 +231,14 @@ Internal change: Convert some parameter parsing to the Fast Parameter Parsing AP - - - - @@ -260,7 +250,6 @@ Internal change: Convert some parameter parsing to the Fast Parameter Parsing AP - @@ -293,11 +282,11 @@ Internal change: Convert some parameter parsing to the Fast Parameter Parsing AP - + @@ -310,9 +299,6 @@ Internal change: Convert some parameter parsing to the Fast Parameter Parsing AP - - - @@ -321,8 +307,6 @@ Internal change: Convert some parameter parsing to the Fast Parameter Parsing AP - - @@ -370,7 +354,6 @@ Internal change: Convert some parameter parsing to the Fast Parameter Parsing AP - @@ -416,7 +399,6 @@ Internal change: Convert some parameter parsing to the Fast Parameter Parsing AP - @@ -426,21 +408,17 @@ Internal change: Convert some parameter parsing to the Fast Parameter Parsing AP - - - - @@ -461,6 +439,8 @@ Internal change: Convert some parameter parsing to the Fast Parameter Parsing AP + + @@ -480,6 +460,26 @@ Internal change: Convert some parameter parsing to the Fast Parameter Parsing AP + + + 2.2.0 + 2.2.0 + + + stable + stable + + PHP + +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 diff --git a/ext/oci8/php_oci8.h b/ext/oci8/php_oci8.h index 4eb3ebeb47..d9be44ce87 100644 --- a/ext/oci8/php_oci8.h +++ b/ext/oci8/php_oci8.h @@ -41,7 +41,7 @@ */ #undef PHP_OCI8_VERSION #endif -#define PHP_OCI8_VERSION "2.2.0" +#define PHP_OCI8_VERSION "3.0.0" extern zend_module_entry oci8_module_entry; #define phpext_oci8_ptr &oci8_module_entry diff --git a/ext/oci8/tests/driver_name.phpt b/ext/oci8/tests/driver_name.phpt index c9d1181ef6..006f7abfa4 100644 --- a/ext/oci8/tests/driver_name.phpt +++ b/ext/oci8/tests/driver_name.phpt @@ -57,11 +57,11 @@ function get_attr($conn) ?> --EXPECT-- **Test 1.1 - Default values for the attribute ************** -The value of DRIVER_NAME is PHP OCI8 : 2.2.0 +The value of DRIVER_NAME is PHP OCI8 : 3.0.0 ***Test 1.2 - Get the values from different connections ************** Testing with oci_pconnect() -The value of DRIVER_NAME is PHP OCI8 : 2.2.0 +The value of DRIVER_NAME is PHP OCI8 : 3.0.0 Testing with oci_new_connect() -The value of DRIVER_NAME is PHP OCI8 : 2.2.0 +The value of DRIVER_NAME is PHP OCI8 : 3.0.0 Done