summaryrefslogtreecommitdiff
path: root/ext/oci8/oci8_lob.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-12-12 09:28:18 +0000
committerAntony Dovgal <tony2001@php.net>2006-12-12 09:28:18 +0000
commitf5543e8279cdfea4ccfd9c55570393d08f6cc3a7 (patch)
tree7ff7a462ab7521ee729375ad63ad3211a192c0f0 /ext/oci8/oci8_lob.c
parentf4e63cbeceff308415346ea8ed364bbf38d64cd7 (diff)
downloadphp-git-f5543e8279cdfea4ccfd9c55570393d08f6cc3a7.tar.gz
MFH
Diffstat (limited to 'ext/oci8/oci8_lob.c')
-rw-r--r--ext/oci8/oci8_lob.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/oci8/oci8_lob.c b/ext/oci8/oci8_lob.c
index b95b07ad50..354ca85b79 100644
--- a/ext/oci8/oci8_lob.c
+++ b/ext/oci8/oci8_lob.c
@@ -190,7 +190,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));