From 5f1b060f732194472a7d55f0438bdccdc1c1638b Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Tue, 12 Dec 2006 09:28:07 +0000 Subject: [PATCH] OCILobGetChunkSize() does not like BFILEs, return read_length right away --- ext/oci8/oci8_lob.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ext/oci8/oci8_lob.c b/ext/oci8/oci8_lob.c index f38dd8d8c4..d1d03972c9 100644 --- a/ext/oci8/oci8_lob.c +++ b/ext/oci8/oci8_lob.c @@ -194,7 +194,11 @@ static inline int php_oci_lob_calculate_buffer(php_oci_descriptor *descriptor, l { php_oci_connection *connection = descriptor->connection; ub4 chunk_size; - + + if (descriptor->type == OCI_DTYPE_FILE) { + return read_length; + } + if (!descriptor->chunk_size) { PHP_OCI_CALL_RETURN(connection->errcode, OCILobGetChunkSize, (connection->svc, connection->err, descriptor->descriptor, &chunk_size)); -- 2.50.1