tony2001 Sat May 20 13:46:41 2006 UTC
Modified files:
/php-src/ext/oci8 oci8_lob.c
Log:
attempt to fix OCILobRead2() related problems
http://cvs.php.net/viewcvs.cgi/php-src/ext/oci8/oci8_lob.c?r1=1.12&r2=1.13&diff_format=u
Index: php-src/ext/oci8/oci8_lob.c
diff -u php-src/ext/oci8/oci8_lob.c:1.12 php-src/ext/oci8/oci8_lob.c:1.13
--- php-src/ext/oci8/oci8_lob.c:1.12 Wed Apr 5 14:07:16 2006
+++ php-src/ext/oci8/oci8_lob.c Sat May 20 13:46:41 2006
@@ -25,7 +25,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: oci8_lob.c,v 1.12 2006/04/05 14:07:16 tony2001 Exp $ */
+/* $Id: oci8_lob.c,v 1.13 2006/05/20 13:46:41 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