From:             leightonbrown at excite dot com
Operating system: Windows 2000
PHP version:      4.3.2
PHP Bug Type:     Informix related
Bug description:  ifx_connect broken when connecting to remote informix server

Description:
------------
On a remote host running several informix server instances, ifx_connect
will only connect to the INFORMIXSERVER that is the default for the user
and password supplied. Even when sqlhosts and etc/services are setup
correctly on the local host. 

Environment
PHP 4.3.2
Web server: Apache 2.0.46
Web server host: Windows 2000 SP 3
OS: Windows 2000 SP 3
Database: Informix OnLine Dynamic 7.3UD2R1
Database host OS: Solaris 5.8

local sqlhosts entry:
mars_tcp onsoctcp remote_1 mars_tcp
birch_tcp onsoctcp remote_1 birch_tcp

c:\winnt\system32\drivers\etc\services entry:
mars_tcp         1529/tcp
birch_tcp        1527/tcp


Reproduce code:
---------------
// program code [line 62 in index.php] fails :
$ifx_handle = ifx_connect("[EMAIL PROTECTED]", "userid", "passwd");

//program code [line 62 in index.php] succeeds :
$ifx_handle = ifx_connect("[EMAIL PROTECTED]", "userid", "passwd");

//birch_tcp is the default INFORMIXSERVER for userid/password or remote_1,
mars_tcp is not.

Expected result:
----------------
$ifx_handle <> 0

Actual result:
--------------
$ifx_handle = 0 
with a logged error :
PHP Warning:  ifx_connect(): E [SQLSTATE=IX 000  SQLCODE=-761] in
C:\Program Files\Apache Group\Apache2\htdocs\php\index.php on line 62

-- 
Edit bug report at http://bugs.php.net/?id=24419&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24419&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24419&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24419&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24419&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24419&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24419&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24419&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24419&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24419&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24419&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24419&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24419&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24419&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24419&r=gnused

Reply via email to