]> granicus.if.org Git - php/commitdiff
MFH: Fixed bug #11924 (ibase_query() and ibase_execute() mangled passed parameters)
authorfoobar <sniper@php.net>
Thu, 10 Jul 2003 00:17:40 +0000 (00:17 +0000)
committerfoobar <sniper@php.net>
Thu, 10 Jul 2003 00:17:40 +0000 (00:17 +0000)
ext/interbase/interbase.c

index 3b9d776ca99771302fe8152e8051c44d3d771046..fcb789a5e13128afb931885bdabb367105171dcc 100644 (file)
@@ -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 */