Skip to content

Commit

Permalink
Replaced ZVAL_NEW_ARR with array_init (#1267)
Browse files Browse the repository at this point in the history
  • Loading branch information
yitam authored Jun 9, 2021
1 parent af61d06 commit c91fe5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/shared/core_stmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ sqlsrv_stmt::sqlsrv_stmt( _In_ sqlsrv_conn* c, _In_ SQLHANDLE handle, _In_ error
ZVAL_UNDEF( &active_stream );

// initialize the col cache
ZVAL_NEW_ARR( &col_cache );
array_init(&col_cache);
core::sqlsrv_zend_hash_init( *conn, Z_ARRVAL(col_cache), 5 /* # of buckets */, col_cache_dtor, 0 /*persistent*/ );

// initialize the field cache
ZVAL_NEW_ARR( &field_cache );
array_init(&field_cache);
core::sqlsrv_zend_hash_init(*conn, Z_ARRVAL(field_cache), 5 /* # of buckets */, field_cache_dtor, 0 /*persistent*/);
}

Expand Down

0 comments on commit c91fe5c

Please sign in to comment.