On Wed, 6 Nov 2002 13:30:03 +0100
Kjartan Mannes <[EMAIL PROTECTED]> wrote:

> I just tried using php-cli from the latest cvs and am a little
> confused by the placement of shell environment variables. $_ENV is
> empty, but the values are stored in $HTTP_SERVER_VARS and $_SERVER.
> 
> Is this the proper behavior?

As far as I remember, this a knonw problem due to the variables order or
something like that. We ve got it in PEAR a few weeks ago, solved by
using a simple: 

$foo = isset($_ENV['foo'])?$_ENV['foo']:getenv('foo');

See php4/pear/System.php function tmpdir() for others examples.

hth

pa

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to