List Info

Thread: Re: $_ENV vs $_SERVER in LoggerOptionConverter




Re: $_ENV vs $_SERVER in LoggerOptionConverter
country flaguser name
Norway
2007-08-01 02:41:22
Michael Schmitz wrote:
> As regards $_ENV superglobal, depending on php.ini
(parameter
> variables_order) this variable may or may not be
prefilled. In my
> opinion we should not to much on php.ini and therefore
should use
> getenv() instead of at least in addition to $_ENV.
One thing about getenv(). I remember running into a
performance issue 
regarding getenv() and PEAR:ate
earlier. My code produced quite a lot 
of Date-objects and PEAR:ate
fetching the timezone information each 
time. So I'm a bit worried that adding getenv() here could
reduce 
performance. I don't have the time to write a benchmark test
right now, 
but I just wanted to mention it.

Knut


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )