summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorLars Westermann <lwe@php.net>2007-11-20 19:58:39 +0000
committerLars Westermann <lwe@php.net>2007-11-20 19:58:39 +0000
commite077331077fac8232259d4872008c2c5724f8eab (patch)
tree51272ecf7092cba112acdb0c2655b0e80e453879 /ext
parent5e123ebef90d35702b4f4fde29029d9d239f9986 (diff)
downloadphp-git-e077331077fac8232259d4872008c2c5724f8eab.tar.gz
Win32 fails to build
Diffstat (limited to 'ext')
-rw-r--r--ext/interbase/ibase_query.c6
1 files changed, 4 insertions, 2 deletions
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);
}