From a4c915c855101caafbf7eff9b438fa9619eb5d33 Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Fri, 18 Jan 2008 16:03:35 +0000 Subject: [PATCH] MFH: Add ifdef --- ext/oci8/oci8.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index 416ce19544..2b90cb44fd 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -1636,7 +1636,9 @@ int php_oci_column_to_zval(php_oci_out_column *column, zval *value, int mode TSR /* PHP_OCI_RETURN_LOBS means that we want the content of the LOB back instead of the locator */ lob_fetch_status = php_oci_lob_read(descriptor, -1, 0, &lob_buffer, &lob_length TSRMLS_CC); +#ifdef HAVE_OCI8_TEMP_LOB php_oci_temp_lob_close(descriptor); +#endif if (lob_fetch_status) { ZVAL_FALSE(value); return 1; -- 2.40.0