Index: ext/oci8/oci8_lob.c =================================================================== RCS file: /repository/php-src/ext/oci8/oci8_lob.c,v retrieving revision 1.7.2.6 diff -u -p -d -r1.7.2.6 oci8_lob.c --- ext/oci8/oci8_lob.c 5 Apr 2006 14:06:00 -0000 1.7.2.6 +++ ext/oci8/oci8_lob.c 20 May 2006 13:39:31 -0000 @@ -150,11 +150,16 @@ int php_oci_lob_read (php_oci_descriptor { php_oci_connection *connection = descriptor->connection; ub4 length = 0; +#if defined(HAVE_OCI_LOB_READ2) + oraub8 bytes_read, bytes_total = 0, offset = 0; + oraub8 requested_len = read_length; /* this is by default */ + oraub8 chars_read = 0; +#else int bytes_read, bytes_total = 0, offset = 0; int requested_len = read_length; /* this is by default */ -#if defined(HAVE_OCI_LOB_READ2) - int chars_read = 0, is_clob = 0; + int chars_read = 0; #endif + int is_clob = 0; *data_len = 0; *data = NULL;