|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-07-22 12:16 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 23:00:01 2025 UTC |
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