From: Antony Dovgal Date: Tue, 12 Dec 2006 09:28:07 +0000 (+0000) Subject: OCILobGetChunkSize() does not like BFILEs, return read_length right away X-Git-Tag: RELEASE_1_0_0RC1~719 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f1b060f732194472a7d55f0438bdccdc1c1638b;p=php OCILobGetChunkSize() does not like BFILEs, return read_length right away --- 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));