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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue May 13 07:01:26 2025 UTC