From: foobar Date: Thu, 10 Jul 2003 00:17:40 +0000 (+0000) Subject: MFH: Fixed bug #11924 (ibase_query() and ibase_execute() mangled passed parameters) X-Git-Tag: php-4.3.3RC2~144 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e33cdb499c60ccf871eb414284219b60cd4cda0;p=php MFH: Fixed bug #11924 (ibase_query() and ibase_execute() mangled passed parameters) --- 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 */