Bug #53244 [Opn->Bgs]: Connection failure with interbase
| From: | felipe@php.net | Date: | Fri, 05 Nov 2010 00:49:01 +0000 |
| Subject: | Bug #53244 [Opn->Bgs]: Connection failure with interbase | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-155774@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53244&edit=1
ID: 53244
Updated by: felipe@php.net
Reported by: ice_and_hut at hotmail dot com
Summary: Connection failure with interbase
-Status: Open
+Status: Bogus
Type: Bug
Package: InterBase related
Operating System: Gentoo Linux
PHP Version: 5.3.3
Block user comment: N
New Comment:
The php-interbase module is not being loaded.
Previous Comments:
------------------------------------------------------------------------
[2010-11-05 01:13:40] ice_and_hut at hotmail dot com
Description:
------------
I am experiencing this behavior with any version of php after 5.2. I
have compiled php with interbase support, but my adodb code fails on the
following line. The firebird database is available (can connect with
flamerobin), im using the latest version of adodb (5.11). Initially I
thought it had something to do with the adodb-ext package, but after
removing that and delving into the adodb package code
(drivers/adodb-ibase.inc.php), this is where it fails.
if (!function_exists('ibase_pconnect')) return null;
Seeing as I have compiled php with interbase support and my function
call to what should be a local php function fails, I see this as a bug.
Any assistance would be appreciated.
Test script:
---------------
require_once("adodb.inc.php"); //ADOdb library
$db_host = "localhost";
$db_username = "username";
$db_password = "password";
$database = "/var/lib/firebird/database.fdb";
$db = NewADOConnection("firebird");
$db->debug = true; //turn on debug msgs
$db->dialect = 3;
$db->autoCommit = true;
$db->PConnect($db_host,$db_username,$db_password,$database); // <----
fails
$db->SetFetchMode(ADODB_FETCH_ASSOC);
if (!$db) {
die("Connection failed");
}
Expected result:
----------------
no output as the connection is successful
Actual result:
--------------
localhost: Missing extension for ibase
messing with the adodb-ibase.inc.php file and commenting out line 66
Fatal error: Call to undefined function ibase_pconnect() in
/usr/share/php5/adodb/drivers/adodb-ibase.inc.php on line 73
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53244&edit=1