From: Lars Westermann Date: Tue, 20 Nov 2007 19:58:39 +0000 (+0000) Subject: Win32 fails to build X-Git-Tag: RELEASE_1_3_1~608 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e077331077fac8232259d4872008c2c5724f8eab;p=php Win32 fails to build --- diff --git a/ext/interbase/ibase_query.c b/ext/interbase/ibase_query.c index a478561ffc..9c82ff4c0a 100644 --- a/ext/interbase/ibase_query.c +++ b/ext/interbase/ibase_query.c @@ -123,9 +123,11 @@ static void _php_ibase_free_stmt_handle(ibase_db_link *link, isc_stmt_handle stm if (stmt) { IBDEBUG("Dropping statement handle (free_stmt_handle)..."); /* Only free statement if db-connection is still open */ - char db_items[] = {isc_info_page_size}, res_buf[40]; + static char info[] = { isc_info_base_level, isc_info_end }; + char res_buf[8]; + if (SUCCESS == isc_database_info(IB_STATUS, &link->handle, - sizeof(db_items), db_items, sizeof(res_buf), res_buf)) { + sizeof(info), info, sizeof(res_buf), res_buf)) { if (isc_dsql_free_statement(IB_STATUS, &stmt, DSQL_drop)) { _php_ibase_error(TSRMLS_C); }