Re: drop TZ environment variable support in 5.4+?

From: Date: Tue, 13 Sep 2011 17:37:54 +0000
Subject: Re: drop TZ environment variable support in 5.4+?
References: 1  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
hi,

For your information, TZ via environment has been removed from 5.4+.
It is not used anymore by the ext/date/lib/ functions, while strftime
and similar system's functions may need it. But the php's date
alternative should be used instead.

Cheers,

On Mon, Sep 5, 2011 at 3:57 PM, Pierre Joye <[email protected]> wrote:
> hi,
>
> ext/date still supports the TZ environment variable in 5.3+ despite
> the better alternative available via either php.ini (per directory
> too) or http://www.php.net/date_default_timezone_set.
>
> The main problem is that putenv and getenv are not thread safe and
> many tests will fail either when using TS SAPIs or on Windows. This
> method is already deprecated and it is recommended to rely on the
> other methods.
>
> Objections/comments?
>
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org
>



-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org


Thread (6 messages)

« previous php.internals (#55409) next »