mirror of
https://github.com/php/php-src.git
synced 2024-11-27 20:03:40 +08:00
parent
5b0c9335d3
commit
d3cd05c95a
@ -3841,11 +3841,11 @@ PHP_FUNCTION(oci_lob_save)
|
||||
|
||||
if (offparam == -1) {
|
||||
offset = curloblen;
|
||||
} else if (offparam >= curloblen) {
|
||||
} else if ((ub4)offparam >= curloblen) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Offset is bigger than current LOB-Size - appending");
|
||||
offset = curloblen;
|
||||
} else {
|
||||
offset = offparam;
|
||||
offset = (ub4)offparam;
|
||||
}
|
||||
} else if (zend_get_parameters_ex(1, &arg) == FAILURE) {
|
||||
WRONG_PARAM_COUNT;
|
||||
@ -3859,6 +3859,10 @@ PHP_FUNCTION(oci_lob_save)
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
if (offset <= 0) {
|
||||
offset = 1;
|
||||
}
|
||||
|
||||
CALL_OCI_RETURN(connection->error,
|
||||
OCILobWrite(
|
||||
connection->pServiceContext,
|
||||
|
Loading…
Reference in New Issue
Block a user