Edit report at http://bugs.php.net/bug.php?id=53244&edit=1
ID: 53244 Comment by: ice_and_hut at hotmail dot com Reported by: ice_and_hut at hotmail dot com Summary: Connection failure with interbase Status: Bogus Type: Bug Package: InterBase related Operating System: Gentoo Linux PHP Version: 5.3.3 Block user comment: N New Comment: If this is the case, how do we load this module? I have never had to load it in the past? Previous Comments: ------------------------------------------------------------------------ [2010-11-05 01:49:01] [email protected] The php-interbase module is not being loaded. ------------------------------------------------------------------------ [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
