PHP 4.0 Bug #6723 Updated: Not valid interbase link

From: Date: Sat, 28 Oct 2000 03:43:24 +0000
Subject: PHP 4.0 Bug #6723 Updated: Not valid interbase link
Groups: php.dev 
Request: Send a blank email to php-dev+get-36177@lists.php.net to get a copy of this message
ID: 6723 Updated by: jah Reported By: gpf@simm.ru Status: Feedback Bug Type: InterBase related Assigned To: Comments: 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. Previous Comments: --------------------------------------------------------------------------- [2000-09-22 21:22:35] gpf@simm.ru The documentation is wrong: the two parameters must be exchanged, so it reads: $sth=ibase_query($stm, $dbh); --------------------------------------------------------------------------- [2000-09-13 18:59:16] gpf@simm.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:inetpubwwwrootshaa.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); ..... --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=6723

« previous php.dev (#36177) next »