Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55233 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43442 invoked from network); 5 Sep 2011 19:40:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Sep 2011 19:40:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 67.192.241.203 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 67.192.241.203 smtp203.dfw.emailsrvr.com Linux 2.6 Received: from [67.192.241.203] ([67.192.241.203:36227] helo=smtp203.dfw.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E0/F1-25098-C95256E4 for ; Mon, 05 Sep 2011 15:40:12 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp20.relay.dfw1a.emailsrvr.com (SMTP Server) with ESMTP id B35552584AC; Mon, 5 Sep 2011 15:40:09 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp20.relay.dfw1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 55ECD2584A7; Mon, 5 Sep 2011 15:40:09 -0400 (EDT) Message-ID: <4E652597.7070600@sugarcrm.com> Date: Mon, 05 Sep 2011 12:40:07 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.1) Gecko/20110830 Thunderbird/6.0.1 MIME-Version: 1.0 To: Pierre Joye CC: PHP internals References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] drop TZ environment variable support in 5.4+? From: smalyshev@sugarcrm.com (Stas Malyshev) 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. This I'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