Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55409 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97676 invoked from network); 13 Sep 2011 17:38:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Sep 2011 17:38:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.42 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.218.42 mail-yi0-f42.google.com Received: from [209.85.218.42] ([209.85.218.42:59047] helo=mail-yi0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 54/F3-09632-6F49F6E4 for ; Tue, 13 Sep 2011 13:37:59 -0400 Received: by yib12 with SMTP id 12so510393yib.29 for ; Tue, 13 Sep 2011 10:37:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=CR0cIUYihv4+187lDFU3RCpu3Ae5kTzE6cw309b7Fl4=; b=uoKYRtfWniBjDrr1yKnyr0R2p2uuJxnNyMHntrlxbXKTQ2JwNErfDn/yk7r/pgaQLJ x3akDB97zoGZk4057j7VryUlE1QqCJOjwazsv9Uq41UsLUFjMrpdpiG75KSSK2CBsjn1 UpTX35N/i+LJI86kex2C2kLBYvMULbErx+dN0= MIME-Version: 1.0 Received: by 10.236.168.3 with SMTP id j3mr5019735yhl.45.1315935474591; Tue, 13 Sep 2011 10:37:54 -0700 (PDT) Received: by 10.147.41.10 with HTTP; Tue, 13 Sep 2011 10:37:54 -0700 (PDT) In-Reply-To: References: Date: Tue, 13 Sep 2011 19:37:54 +0200 Message-ID: To: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: drop TZ environment variable support in 5.4+? From: pierre.php@gmail.com (Pierre Joye) 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 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