diff options
author | Antony Dovgal <tony2001@php.net> | 2006-05-20 13:46:59 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2006-05-20 13:46:59 +0000 |
commit | 25eca319fafe484a5bcd65b89a984c822d3b1348 (patch) | |
tree | c5914f129eb731327a11ea131bb0a1c8f50aed5b | |
parent | 10ab729e88ebed74fec3c239c0818283d19e5243 (diff) | |
download | php-git-25eca319fafe484a5bcd65b89a984c822d3b1348.tar.gz |
MFH: attempt to fix OCILobRead2() related problems
-rw-r--r-- | ext/oci8/oci8_lob.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ext/oci8/oci8_lob.c b/ext/oci8/oci8_lob.c index af9de8341a..05763ea837 100644 --- a/ext/oci8/oci8_lob.c +++ b/ext/oci8/oci8_lob.c @@ -150,11 +150,16 @@ int php_oci_lob_read (php_oci_descriptor *descriptor, long read_length, long ini { 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; |