Skip to content

Commit f5543e8

Browse files
committed
MFH
1 parent f4e63cb commit f5543e8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ext/oci8/oci8_lob.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,11 @@ static inline int php_oci_lob_calculate_buffer(php_oci_descriptor *descriptor, l
190190
{
191191
php_oci_connection *connection = descriptor->connection;
192192
ub4 chunk_size;
193-
193+
194+
if (descriptor->type == OCI_DTYPE_FILE) {
195+
return read_length;
196+
}
197+
194198
if (!descriptor->chunk_size) {
195199
PHP_OCI_CALL_RETURN(connection->errcode, OCILobGetChunkSize, (connection->svc, connection->err, descriptor->descriptor, &chunk_size));
196200

0 commit comments

Comments
 (0)