sixd            Fri Jan 18 16:03:23 2008 UTC

  Modified files:              
    /php-src/ext/oci8   oci8.c 
  Log:
  Add ifdef
  
http://cvs.php.net/viewvc.cgi/php-src/ext/oci8/oci8.c?r1=1.340&r2=1.341&diff_format=u
Index: php-src/ext/oci8/oci8.c
diff -u php-src/ext/oci8/oci8.c:1.340 php-src/ext/oci8/oci8.c:1.341
--- php-src/ext/oci8/oci8.c:1.340       Tue Jan 15 20:47:50 2008
+++ php-src/ext/oci8/oci8.c     Fri Jan 18 16:03:23 2008
@@ -26,7 +26,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: oci8.c,v 1.340 2008/01/15 20:47:50 sixd Exp $ */
+/* $Id: oci8.c,v 1.341 2008/01/18 16:03:23 sixd Exp $ */
 /* TODO
  *
  * file://localhost/www/docs/oci10/ociaahan.htm#423823 - implement lob_empty() 
with OCI_ATTR_LOBEMPTY
@@ -674,7 +674,7 @@
        php_info_print_table_start();
        php_info_print_table_row(2, "OCI8 Support", "enabled");
        php_info_print_table_row(2, "Version", "1.2.2");
-       php_info_print_table_row(2, "Revision", "$Revision: 1.340 $");
+       php_info_print_table_row(2, "Revision", "$Revision: 1.341 $");
 
        snprintf(buf, sizeof(buf), "%ld", OCI_G(num_persistent));
        php_info_print_table_row(2, "Active Persistent Connections", buf);
@@ -1681,7 +1681,9 @@
                        
                        lob_fetch_status = php_oci_lob_read(descriptor, -1, 0, 
&lob_buffer, &lob_length TSRMLS_CC);
                        lob_fetch_status |= (php_oci_lob_get_type(descriptor, 
&lob_type TSRMLS_CC) > 0);
+#ifdef HAVE_OCI8_TEMP_LOB
                        php_oci_temp_lob_close(descriptor);
+#endif
                        if (lob_fetch_status) {
                                ZVAL_FALSE(value);
                                return 1;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to