summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/oci8/oci8_statement.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/oci8/oci8_statement.c b/ext/oci8/oci8_statement.c
index 574a88627b..dbdb0df96e 100644
--- a/ext/oci8/oci8_statement.c
+++ b/ext/oci8/oci8_statement.c
@@ -1193,7 +1193,7 @@ php_oci_bind *php_oci_bind_array_helper_string(zval* var, long max_table_length,
while (zend_hash_get_current_data(hash, (void **) &entry) != FAILURE) {
convert_to_string_ex(entry);
if (Z_STRLEN_PP(entry) > maxlength) {
- maxlength = Z_STRLEN_PP(entry);
+ maxlength = Z_STRLEN_PP(entry) + 1;
}
zend_hash_move_forward(hash);
}