Re: drop TZ environment variable support in 5.4+?
| From: | Stas Malyshev | Date: | Mon, 05 Sep 2011 19:40:07 +0000 |
| Subject: | Re: drop TZ environment variable support in 5.4+? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-55233@lists.php.net to get a copy of this message | ||
Hi!
On 9/5/11 6:57 AM, Pierre Joye wrote:
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. ThisI'm not sure I understand how putenv() being non-thread-safe leads to tests failing - tests aren't threaded and AFAIK TS API doesn't do anything special there. Can you explain?
method is already deprecated and it is recommended to rely on the other methods.Unfortunately, some functions - like strftime - still are TZ-dependant on some systems (like Darwin), so ignoring TZ altogether is not achievable. And once we have people use TZ, why not have it work for all? -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227