From: burhan dot khalid at gmail dot com Operating system: Ubuntu 6.06 LTS "Dapper" PHP version: 4.4.2 PHP Bug Type: InterBase related Bug description: connection refused to local file using ibase_connect
Description: ------------ ibase_connect() refuses to connect to a local file, giving the following error: -902 : Unable to complete network request to host "localhost". Failed to establish a connection. Connection refused I have checked /etc/services based on other bug reports and have the correct line in there : $ grep gds /etc/services gds_db 3050/tcp # InterBase server gds_db 3050/udp Reproduce code: --------------- <?php $loc = 'localhost:/home/user/FOO.GDB'; $un = 'SYSDBA'; $pw = 'masterkey'; $conn = ibase_connect($loc,$un,$pw); if (!$conn) { die(ibase_errcode()." : ".ibase_errmsg()."\n"); } ibase_close(); ?> Expected result: ---------------- A more descriptive error message, or silent exit depending on the status. Anything but 'connection refused'. Actual result: -------------- -902 : Unable to complete network request to host "localhost". Failed to establish a connection. Connection refused -- Edit bug report at http://bugs.php.net/?id=37904&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37904&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37904&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37904&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37904&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37904&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37904&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37904&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37904&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37904&r=support Expected behavior: http://bugs.php.net/fix.php?id=37904&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37904&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37904&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37904&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37904&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37904&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37904&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37904&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37904&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37904&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37904&r=mysqlcfg