#37904 [Opn]: connection refused to local file using ibase_connect

From: Date: Sat, 22 Jul 2006 12:16:45 +0000
Subject: #37904 [Opn]: connection refused to local file using ibase_connect
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-99739@lists.php.net to get a copy of this message
ID: 37904 Updated by: sniper@php.net Reported By: burhan dot khalid at gmail dot com Status: Open Bug Type: InterBase related Operating System: Ubuntu 6.06 LTS "Dapper" PHP Version: 4.4.2 New Comment: Definately not PHP bug. Please ask the Interbase people for support on their libraries. Previous Comments: ------------------------------------------------------------------------ [2006-06-24 07:24:37] burhan dot khalid at gmail dot com 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 this bug report at http://bugs.php.net/?id=37904&edit=1

« previous php.bugs (#99739) next »