Skip to content

Commit c91fe5c

Browse files
authored
Replaced ZVAL_NEW_ARR with array_init (#1267)
1 parent af61d06 commit c91fe5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/shared/core_stmt.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ sqlsrv_stmt::sqlsrv_stmt( _In_ sqlsrv_conn* c, _In_ SQLHANDLE handle, _In_ error
137137
ZVAL_UNDEF( &active_stream );
138138

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

143143
// initialize the field cache
144-
ZVAL_NEW_ARR( &field_cache );
144+
array_init(&field_cache);
145145
core::sqlsrv_zend_hash_init(*conn, Z_ARRVAL(field_cache), 5 /* # of buckets */, field_cache_dtor, 0 /*persistent*/);
146146
}
147147

0 commit comments

Comments
 (0)