diff options
-rw-r--r-- | ext/oci8/oci8_statement.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/oci8/oci8_statement.c b/ext/oci8/oci8_statement.c index 3927392e30..a56f7a6961 100644 --- a/ext/oci8/oci8_statement.c +++ b/ext/oci8/oci8_statement.c @@ -697,7 +697,9 @@ int php_oci_bind_post_exec(void *data TSRMLS_DC) php_oci_error(connection->err, connection->errcode TSRMLS_CC); ZVAL_NULL(*entry); } - ZVAL_STRINGL(*entry, buff, buff_len, 1); + else { + ZVAL_STRINGL(*entry, buff, buff_len, 1); + } zend_hash_move_forward(hash); } else { @@ -706,7 +708,9 @@ int php_oci_bind_post_exec(void *data TSRMLS_DC) php_oci_error(connection->err, connection->errcode TSRMLS_CC); add_next_index_null(bind->zval); } - add_next_index_stringl(bind->zval, buff, buff_len, 1); + else { + add_next_index_stringl(bind->zval, buff, buff_len, 1); + } } } break; |