From:             [EMAIL PROTECTED]
Operating system: aix 4.3.3
PHP version:      4.2.0
PHP Bug Type:     Informix related
Bug description:  INFORMIXSERVER not being read

The following php script does not work....

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

it prints:
ibm65
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:
  <?php
  putenv("INFORMIXSERVER=ibm65");
  $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.

-- 
Edit bug report at http://bugs.php.net/?id=17047&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17047&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17047&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17047&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17047&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17047&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17047&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17047&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17047&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17047&r=globals

Reply via email to