From 92deeac73240a3755b2addde43fe8777064c3b29 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Tue, 20 Jan 2004 11:37:17 +0000 Subject: [PATCH] fix savelob() to make it possible to write data at the beginning of LOB --- ext/oci8/oci8.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index afe5b74f41..884f7adf49 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -3118,8 +3118,8 @@ PHP_FUNCTION(ocisavelob) 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 @@ PHP_FUNCTION(ocisavelob) WRONG_PARAM_COUNT; } - offset++; convert_to_string_ex(arg); loblen = Z_STRLEN_PP(arg); -- 2.40.0