Before close the connection remember to free your query results too...
$dbh = ibase_connect($host, $username, $password);
$stmt = 'SELECT * FROM tblname';
$sth = ibase_query($dbh, $stmt);
while ($row = ibase_fetch_object($sth)) {
.............
}
ibase_free_result($sth); // <-------
ibase_close($dbh);
ibase_close
(PHP 4, PHP 5)
ibase_close — InterBase データベースへの接続を閉じる
説明
bool ibase_close
([ resource $connection_id = NULL
] )
ibase_connect() から返された接続 ID が指す InterBase データベースへのリンクを閉じます。 接続 ID が省略された場合、最後にオープンされたリンクが仮定されます。 リンクにおけるデフォルトのトランザクションがコミットされ、 他のトランザクションはロールバックされます。
返り値
成功した場合に TRUE を、失敗した場合に FALSE を返します。
02-Apr-2002 12:18
