diff options
-rw-r--r-- | ext/oci8/oci8.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index 5000285502..da209afa39 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -2840,7 +2840,7 @@ PHP_FUNCTION(ocisavelob) if (offparam == -1) { offset = curloblen; - } else if (offparam >= curloblen) { + } else if ((ub4) offparam >= curloblen) { php_error(E_WARNING, "Offset smaller than current LOB-Size - appending"); offset = curloblen; } else { @@ -3131,7 +3131,7 @@ PHP_FUNCTION(ociwritelobtofile) } if (fp != -1) { - if (write(fp,buffer,toread) != toread) { + if ((ub4) write(fp,buffer,toread) != toread) { php_error(E_WARNING, "cannot write file!"); goto bail; } |