php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37904 connection refused to local file using ibase_connect
Submitted: 2006-06-24 07:24 UTC Modified: 2006-07-22 12:16 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: burhan dot khalid at gmail dot com Assigned:
Status: Not a bug Package: InterBase related
PHP Version: 4.4.2 OS: Ubuntu 6.06 LTS "Dapper"
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: burhan dot khalid at gmail dot com
New email:
PHP Version: OS:

 

 [2006-06-24 07:24 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-07-22 12:16 UTC] sniper@php.net
Definately not PHP bug. Please ask the Interbase people for support on their libraries. 
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Nov 30 22:01:24 2020 UTC