diff options
author | Antony Dovgal <tony2001@php.net> | 2005-12-08 21:22:52 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2005-12-08 21:22:52 +0000 |
commit | c287dec80263c17e1316f7c6a225677cfa17d2eb (patch) | |
tree | f511b7f7dc2b6b7fe8dd329718c7d6f7bf3adcf0 | |
parent | 185f085735b79e80e4c2314c088ca2b088241fd9 (diff) | |
download | php-git-c287dec80263c17e1316f7c6a225677cfa17d2eb.tar.gz |
MFH: add 1 to the max_length to keep \0 at its place
-rw-r--r-- | ext/oci8/oci8_statement.c | 2 |
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); } |