tony2001                Tue Jan 20 06:37:19 2004 EDT

  Modified files:              (Branch: PHP_4_3)
    /php-src/ext/oci8   oci8.c 
  Log:
  fix savelob() to make it possible to write data at the beginning of LOB
  
  
http://cvs.php.net/diff.php/php-src/ext/oci8/oci8.c?r1=1.183.2.8&r2=1.183.2.9&ty=u
Index: php-src/ext/oci8/oci8.c
diff -u php-src/ext/oci8/oci8.c:1.183.2.8 php-src/ext/oci8/oci8.c:1.183.2.9
--- php-src/ext/oci8/oci8.c:1.183.2.8   Thu Jan 15 10:14:41 2004
+++ php-src/ext/oci8/oci8.c     Tue Jan 20 06:37:17 2004
@@ -21,7 +21,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: oci8.c,v 1.183.2.8 2004/01/15 15:14:41 tony2001 Exp $ */
+/* $Id: oci8.c,v 1.183.2.9 2004/01/20 11:37:17 tony2001 Exp $ */
 
 /* TODO list:
  *
@@ -641,7 +641,7 @@
 
        php_info_print_table_start();
        php_info_print_table_row(2, "OCI8 Support", "enabled");
-       php_info_print_table_row(2, "Revision", "$Revision: 1.183.2.8 $");
+       php_info_print_table_row(2, "Revision", "$Revision: 1.183.2.9 $");
 #ifndef PHP_WIN32
        php_info_print_table_row(2, "Oracle Version", PHP_OCI8_VERSION );
        php_info_print_table_row(2, "Compile-time ORACLE_HOME", PHP_OCI8_DIR );
@@ -3118,8 +3118,8 @@
 
                        if (offparam == -1) {
                                offset = curloblen;
-                       } else if ((ub4) offparam >= curloblen) {
-                               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Offset 
smaller than current LOB-Size - appending");
+                       } else if (offparam >= curloblen) {
+                               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Offset is 
bigger than current LOB-Size - appending");
                                offset = curloblen;
                        } else {
                                offset = offparam;
@@ -3128,7 +3128,6 @@
                        WRONG_PARAM_COUNT;
                }
 
-               offset++;
                convert_to_string_ex(arg);
                loblen = Z_STRLEN_PP(arg);
        

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

Reply via email to