Patch 57702-PHP-5.4-20120623.patch for PDO OCI Bug #57702
Patch version 2012-06-23 09:28 UTC
Return to Bug #57702 |
Download this patch
Patch Revisions:
Developer: hswong3i@gmail.com
From 02d7e8d473ee97c079771da22942f5261737124f Mon Sep 17 00:00:00 2001
From: Wong Hoi Sing Edison <hswong3i@gmail.com>
Date: Sat, 23 Jun 2012 16:44:38 +0800
Subject: [PATCH] Bug #57702 Multiple BLOB fetch fails.
---
ext/pdo_oci/oci_statement.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/ext/pdo_oci/oci_statement.c b/ext/pdo_oci/oci_statement.c
index da35425..be51b6f 100755
--- a/ext/pdo_oci/oci_statement.c
+++ b/ext/pdo_oci/oci_statement.c
@@ -99,7 +99,7 @@ static int oci_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC) /* {{{ */
switch (S->cols[i].dtype) {
case SQLT_BLOB:
case SQLT_CLOB:
- /* do nothing */
+ OCIDescriptorFree(S->cols[i].data, OCI_DTYPE_LOB);
break;
default:
efree(S->cols[i].data);
@@ -654,7 +654,6 @@ static int oci_blob_close(php_stream *stream, int close_handle TSRMLS_DC)
if (close_handle) {
OCILobClose(self->S->H->svc, self->S->err, self->lob);
- OCIDescriptorFree(self->lob, OCI_DTYPE_LOB);
efree(self);
}
--
1.7.9.5
|