From:             
Operating system: Gentoo Linux
PHP version:      5.3.3
Package:          InterBase related
Bug Type:         Bug
Bug description:Connection failure with interbase 

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 bug report at http://bugs.php.net/bug.php?id=53244&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=53244&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=53244&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=53244&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=53244&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=53244&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=53244&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=53244&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=53244&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=53244&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=53244&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=53244&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=53244&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=53244&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=53244&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=53244&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=53244&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=53244&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=53244&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=53244&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=53244&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=53244&r=mysqlcfg

Reply via email to