diff options
| -rw-r--r-- | NEWS | 1 | ||||
| -rw-r--r-- | ext/oci8/oci8_interface.c | 6 |
2 files changed, 4 insertions, 3 deletions
@@ -16,6 +16,7 @@ PHP NEWS (Laruence) - OCI8: + . Fixed LOB implementation size_t/zend_long mismatch reported by gcov. (Senthil) . Fixed memory leak with LOBs. (Senthil) - SOAP: diff --git a/ext/oci8/oci8_interface.c b/ext/oci8/oci8_interface.c index 7d845fea7c..ec73513024 100644 --- a/ext/oci8/oci8_interface.c +++ b/ext/oci8/oci8_interface.c @@ -534,7 +534,7 @@ PHP_FUNCTION(oci_lob_write) { zval *tmp, *z_descriptor = getThis(); php_oci_descriptor *descriptor; - zend_long data_len; + size_t data_len; zend_long write_len = 0; ub4 bytes_written; char *data; @@ -545,7 +545,7 @@ PHP_FUNCTION(oci_lob_write) } if (ZEND_NUM_ARGS() == 2) { - data_len = MIN(data_len, write_len); + data_len = MIN((zend_long) data_len, write_len); } } else { @@ -554,7 +554,7 @@ PHP_FUNCTION(oci_lob_write) } if (ZEND_NUM_ARGS() == 3) { - data_len = MIN(data_len, write_len); + data_len = MIN((zend_long) data_len, write_len); } } |
