bug is confirmed but that is not the way to use an query with parameters

here is how i tested on my machine

<?php
$host = '/var/lib/firebird/2.1/data/employee.fdb';
$user = 'sysdba';
$pass = 'masterkey';

$dbh = ibase_connect($host, $user, $pass);
$sql = 'SELECT * FROM EMPLOYEE WHERE JOB_COUNTRY = ?'; // only one parameter

$sth = ibase_query($dbh, $sql, $user, $pass); // too many parameters given
while ($row = ibase_fetch_assoc($sth)) {
 print $row;
}
ibase_free_result($sth);
ibase_close($dbh);
?>

-- 
ibase_query causes segfault
https://bugs.launchpad.net/bugs/224892
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to