From c91fe5c42bd38ec48f7af636de72b73d038ab8ac Mon Sep 17 00:00:00 2001 From: Jenny Tam Date: Wed, 9 Jun 2021 13:00:04 -0700 Subject: [PATCH] Replaced ZVAL_NEW_ARR with array_init (#1267) --- source/shared/core_stmt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/shared/core_stmt.cpp b/source/shared/core_stmt.cpp index 968116c31..c3f0f25f2 100644 --- a/source/shared/core_stmt.cpp +++ b/source/shared/core_stmt.cpp @@ -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*/); }