php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6723 Not valid interbase link
Submitted: 2000-09-13 18:59 UTC Modified: 2000-11-27 09:48 UTC
From: gpf at simm dot ru Assigned:
Status: Closed Package: InterBase related
PHP Version: 4.0.2 OS: Win2k
Private report: No CVE-ID: None
 [2000-09-13 18:59 UTC] gpf at simm dot ru
$dbh=ibase_pconnect("ib:d:\sh.gdb", "SYSDBA","masterkey");
$stm="select * from rating";
$sth=ibase_query($dbh,$stm);
...

result:
Warning: 0 is not a valid InterBase link resource in d:\inetpub\wwwroot\sh\aa.php3 on line 5
PHP has encountered an Access Violation at 405425D5

this script is working normaly:
$dbh=ibase_pconnect("ib:d:\sh.gdb", "SYSDBA","masterkey");
$stm="select * from rating";
$sth=ibase_query($stm);
.....



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-22 21:22 UTC] gpf at simm dot ru
The documentation is wrong: the two parameters must be exchanged, so it reads:
$sth=ibase_query($stm, $dbh);

 [2000-10-27 23:43 UTC] jah@php.net
This is, I hope, fixed (can't test it because I don't have any Windows machine).You should fetch php4.0.4-dev for win32 from http://www.php4win.de.

Or if you would rather stay with a release version, php4.0.3 for win32 from
the same place and contact me (jah@php.net) directly for an updated version
of php_interbase.dll (thanks to Daniel Beulshausen for compiling it), there was
still one critical InterBase-related bug in 4.0.3.

Besides, the documentation is *right*. The two-argument version didn't work
because of a bug, and in your "corrected" example, $dbh is not used at all.
 [2000-11-27 09:48 UTC] sniper@php.net
No feedback -> considred fixed -> closed.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Nov 30 07:03:33 2021 UTC