tony2001                Tue Dec 12 09:28:07 2006 UTC

  Modified files:              
    /php-src/ext/oci8   oci8_lob.c 
  Log:
  OCILobGetChunkSize() does not like BFILEs, return read_length right away
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/oci8/oci8_lob.c?r1=1.23&r2=1.24&diff_format=u
Index: php-src/ext/oci8/oci8_lob.c
diff -u php-src/ext/oci8/oci8_lob.c:1.23 php-src/ext/oci8/oci8_lob.c:1.24
--- php-src/ext/oci8/oci8_lob.c:1.23    Fri Dec  8 20:55:13 2006
+++ php-src/ext/oci8/oci8_lob.c Tue Dec 12 09:28:07 2006
@@ -25,7 +25,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: oci8_lob.c,v 1.23 2006/12/08 20:55:13 tony2001 Exp $ */
+/* $Id: oci8_lob.c,v 1.24 2006/12/12 09:28:07 tony2001 Exp $ */
 
 
 
@@ -194,7 +194,11 @@
 {
        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));
 

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to