-oci_lob_load shouldn't reset LOB's length to zero
-Oracle feels bad, but reports no error, when trying to erase LOB with offset bigger than LOB
return -1;
}
- mydescr->lob_size = *loblen;
-
if (Z_TYPE_P(mydescr) == OCI_DTYPE_FILE) {
CALL_OCI_RETURN(connection->error,
OCILobFileClose(
if (erase_length < 1) {
RETURN_LONG(0);
}
+
+ if (erase_offset > descr->lob_size) {
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "oci_lob_erase(): offset is greater than LOB's length");
+ }
CALL_OCI_RETURN(connection->error,
OCILobErase(