From 9e33cdb499c60ccf871eb414284219b60cd4cda0 Mon Sep 17 00:00:00 2001 From: foobar Date: Thu, 10 Jul 2003 00:17:40 +0000 Subject: [PATCH] MFH: Fixed bug #11924 (ibase_query() and ibase_execute() mangled passed parameters) --- ext/interbase/interbase.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/interbase/interbase.c b/ext/interbase/interbase.c index 3b9d776ca9..fcb789a5e1 100644 --- a/ext/interbase/interbase.c +++ b/ext/interbase/interbase.c @@ -1434,6 +1434,10 @@ static int _php_ibase_exec(ibase_result **ib_resultp, ibase_query *ib_query, int TSRMLS_FETCH(); IB_RESULT = NULL; + + if (argc > 0 && args != NULL) { + SEPARATE_ZVAL(args); + } /* allocate sqlda and output buffers */ if (ib_query->out_sqlda) { /* output variables in select, select for update */ -- 2.40.0