|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17047 INFORMIXSERVER not being read
Submitted: 2002-05-06 13:41 UTC Modified: 2002-10-27 19:00 UTC
Avg. Score:4.3 ± 0.9
Reproduced:1 of 3 (33.3%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: pedietz at west dot com Assigned:
Status: No Feedback Package: Informix related
PHP Version: 4.2.0 OS: aix 4.3.3
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-05-06 13:41 UTC] pedietz at west dot com
The following php script does not work....

  // print the value of my INFORMIXSERVER variable
  echo getenv("INFORMIXSERVER");
  $conn_id = ifx_connect ("db@ibm65");

it prints:
Warning: ifx_connect: E [SQLSTATE=IX 000 SQLCODE=-25560] in test.php on line 14

25560 means that INFORMIXSERVER is not set in the env.
Which is crazy because I getenv it and echo it.

But the following works:
  $conn_id = ifx_connect ("db@ibm65");

So it seems that the environment variable INFORMIXSERVER is not being read correctly.

Besides having INFORMIXSERVER set in my env, I also have set the /usr/local/lib/php.ini ifx.default_host=ibm65.  Yet neither work.

I have to putenv() the value explicitly.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-06 14:13 UTC] pedietz at west dot com
Also of note, 

I have register_global = On.

phpinfo() shows:
register_global = On and On
ifx.default_host = ibm65

Yet it still requires me to do this:
 [2002-10-10 22:55 UTC]
Please try using this CVS snapshot:
For Windows:

 [2002-10-27 19:00 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

 [2007-11-20 15:54 UTC] eduardoquiroz at gmail dot com
I have the same problem but in PHP 5.2.1
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 22 02:01:28 2024 UTC