drop TZ environment variable support in 5.4+?
| From: | Pierre Joye | Date: | Mon, 05 Sep 2011 13:57:41 +0000 |
| Subject: | drop TZ environment variable support in 5.4+? | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-55224@lists.php.net to get a copy of this message | ||
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