From 0781f512c38024c9f69720a72de11857cd546456 Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Thu, 4 Aug 2016 14:48:07 +1000 Subject: [PATCH] Fixed invalid handle error with Implicit Result Sets and bump OCI8 version. --- ext/oci8/oci8.c | 3 ++- ext/oci8/package.xml | 26 +++++++++++++++++++++----- ext/oci8/php_oci8.h | 2 +- 3 files changed, 24 insertions(+), 7 deletions(-) diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index 51861b090c..488b3b42aa 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -2559,7 +2559,8 @@ void php_oci_fetch_row (INTERNAL_FUNCTION_PARAMETERS, int mode, int expected_arg #else /* OCI_MAJOR_VERSION */ PHP_OCI_ZVAL_TO_STATEMENT(z_statement, invokedstatement); - if (invokedstatement->impres_flag == PHP_OCI_IMPRES_NO_CHILDREN) { + if (invokedstatement->impres_flag == PHP_OCI_IMPRES_NO_CHILDREN || + invokedstatement->impres_flag == PHP_OCI_IMPRES_IS_CHILD) { /* Already know there are no Implicit Result Sets */ statement = invokedstatement; } else if (invokedstatement->impres_flag == PHP_OCI_IMPRES_HAS_CHILDREN) { diff --git a/ext/oci8/package.xml b/ext/oci8/package.xml index 88462415cb..daa55eb2a9 100644 --- a/ext/oci8/package.xml +++ b/ext/oci8/package.xml @@ -9,7 +9,7 @@ http://pear.php.net/dtd/package-2.0.xsd"> Use the OCI8 extension to access Oracle Database. PHP OCI8 2.1 builds -with PHP 7. Use 'pecl install oci8-2.0.11' to install OCI8 for PHP +with PHP 7. Use 'pecl install oci8-2.0.12' to install OCI8 for PHP 5.2 - PHP 5.6. Use 'pecl install oci8-1.4.10' to install PHP OCI8 1.4 for PHP 4.3.9 - PHP 5.1. The OCI8 extension can be linked with Oracle client libraries from Oracle Database 12.1, 11, or 10.2. These @@ -46,12 +46,12 @@ Interoperability Support" (ID 207303.1) for details. no - 2016-04-15 + 2016-08-04 - 2.1.1 - 2.1.1 + 2.1.2 + 2.1.2 stable @@ -60,7 +60,7 @@ Interoperability Support" (ID 207303.1) for details. PHP This version is for PHP 7 only. -Fixed bug #71600 (oci_fetch_all segfaults when selecting more than 8 columns) +Fixed invalid handle error with Implicit Result Sets @@ -467,6 +467,22 @@ Fixed bug #71600 (oci_fetch_all segfaults when selecting more than 8 columns) + + + 2.1.1 + 2.1.1 + + + stable + stable + + PHP + +This version is for PHP 7 only. +Fixed bug #71600 (oci_fetch_all segfaults when selecting more than 8 columns) + + + 2.1.0 diff --git a/ext/oci8/php_oci8.h b/ext/oci8/php_oci8.h index da62aabac6..d1e501344a 100644 --- a/ext/oci8/php_oci8.h +++ b/ext/oci8/php_oci8.h @@ -45,7 +45,7 @@ */ #undef PHP_OCI8_VERSION #endif -#define PHP_OCI8_VERSION "2.1.1" +#define PHP_OCI8_VERSION "2.1.2" extern zend_module_entry oci8_module_entry; #define phpext_oci8_ptr &oci8_module_entry -- 2.40.0