]> granicus.if.org Git - php/commitdiff
MFH: Add ifdef
authorChristopher Jones <sixd@php.net>
Fri, 18 Jan 2008 16:03:35 +0000 (16:03 +0000)
committerChristopher Jones <sixd@php.net>
Fri, 18 Jan 2008 16:03:35 +0000 (16:03 +0000)
ext/oci8/oci8.c

index 416ce195446a93ea0cba4783cf6dd5d3684f1b6a..2b90cb44fdcfe55bc2c6eb800d23b85149a15f9c 100644 (file)
@@ -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;