Re: PHP CLI environment variables
| From: | Kjartan Mannes | Date: | Wed, 06 Nov 2002 13:11:03 +0000 |
| Subject: | Re: PHP CLI environment variables | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-90554@lists.php.net to get a copy of this message | ||
Wednesday, November 6, 2002, 1:54:21 PM, Pierre-Alain Joye wrote:
> 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.
Doesn't this make things overly complex? Any good reason why the missing
values in variables_order don't just get automatically appended to the
end?
--
Kjartan <kjartan@zind.net> (http://natrak.net/)
:: "WARNING: Keyboard Not Attached. Press F10 to Continue."