ID: 37904
Updated by: [EMAIL PROTECTED]
Reported By: burhan dot khalid at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: InterBase related
Operating System: Ubuntu 6.06 LTS "Dapper"
PHP Version: 4.4.2
New Comment:
.
Previous Comments:
------------------------------------------------------------------------
[2006-07-22 12:16:45] [EMAIL PROTECTED]
Definately not PHP bug. Please ask the Interbase people for support on
their libraries.
------------------------------------------------------------------------
[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