tony2001 Sat May 20 13:46:59 2006 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/oci8 oci8_lob.c
Log:
MFH: attempt to fix OCILobRead2() related problems
http://cvs.php.net/viewcvs.cgi/php-src/ext/oci8/oci8_lob.c?r1=1.7.2.6&r2=1.7.2.6.2.1&diff_format=u
Index: php-src/ext/oci8/oci8_lob.c
diff -u php-src/ext/oci8/oci8_lob.c:1.7.2.6
php-src/ext/oci8/oci8_lob.c:1.7.2.6.2.1
--- php-src/ext/oci8/oci8_lob.c:1.7.2.6 Wed Apr 5 14:06:00 2006
+++ php-src/ext/oci8/oci8_lob.c Sat May 20 13:46:59 2006
@@ -25,7 +25,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: oci8_lob.c,v 1.7.2.6 2006/04/05 14:06:00 tony2001 Exp $ */
+/* $Id: oci8_lob.c,v 1.7.2.6.2.1 2006/05/20 13:46:59 tony2001 Exp $ */
@@ -150,11 +150,16 @@
{
php_oci_connection *connection = descriptor->connection;
ub4 length = 0;
+#if defined(HAVE_OCI_LOB_READ2)
+ oraub8 bytes_read, bytes_total = 0, offset = 0;
+ oraub8 requested_len = read_length; /* this is by default */
+ oraub8 chars_read = 0;
+#else
int bytes_read, bytes_total = 0, offset = 0;
int requested_len = read_length; /* this is by default */
-#if defined(HAVE_OCI_LOB_READ2)
- int chars_read = 0, is_clob = 0;
+ int chars_read = 0;
#endif
+ int is_clob = 0;
*data_len = 0;
*data = NULL;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php