Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67518 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56174 invoked from network); 25 May 2013 15:09:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 May 2013 15:09:51 -0000 Authentication-Results: pb1.pair.com header.from=morrison.levi@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=morrison.levi@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.180 as permitted sender) X-PHP-List-Original-Sender: morrison.levi@gmail.com X-Host-Fingerprint: 209.85.214.180 mail-ob0-f180.google.com Received: from [209.85.214.180] ([209.85.214.180:64028] helo=mail-ob0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9F/75-25010-E34D0A15 for ; Sat, 25 May 2013 11:09:51 -0400 Received: by mail-ob0-f180.google.com with SMTP id xk17so6443691obc.25 for ; Sat, 25 May 2013 08:09:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=obCC0qX9+eSFQzKxuPf29Uav+i3hXCncvHjL1plOEYk=; b=URZIlwp5o5SStzBNd3S1Ltq5SVNN8KZ0++I0C5AcNSk+MMJZEWiNcNbAgIS1iwx6LD YkhboK71HIDG7Rf93SsMS1yf19KZGCZ00OZwTuw3ra/yLsT5MV2e7gNvrgB26BG25pyk KVAHEddWbfBhKVnaSNEh2d3yLMwqIQm4cJW/2YKhdC5tbZqvHHZW+wvWzXc/2Q86eakx +OPvcxQnrXxuGCEjMiuvRzfJW0IIF9A/0e78Ov7RwnyhfNBZvzbfEIj8UFcBdrb1z+kp cul4vjZ7FPKTrysAThmpn3ixGGQoLeiREq7tnT6ejut1hkTkjCkVDegfUKwwAqLDsHYk g29w== MIME-Version: 1.0 X-Received: by 10.60.47.230 with SMTP id g6mr10531210oen.75.1369494588196; Sat, 25 May 2013 08:09:48 -0700 (PDT) Received: by 10.76.150.193 with HTTP; Sat, 25 May 2013 08:09:48 -0700 (PDT) In-Reply-To: <51A0D320.5020605@wikimedia.org> References: <51A092FC.4010700@wikimedia.org> <51A0D320.5020605@wikimedia.org> Date: Sat, 25 May 2013 09:09:48 -0600 Message-ID: To: Tim Starling Cc: Pierre Joye , PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale? From: morrison.levi@gmail.com (Levi Morrison) >> It is actually only about getting safe, cross platform/OS (even >> between Linux versions) for the TZ database. It has nothing to do >> with taste or similar subjective opinion. >> >> For the record, the behavior requested in this thread is what we had >> in earlier versions, all we got was plenty of bugs reports about >> wrong TZ detections. >> > > I had missed the removal of the TZ detection code from > guess_timezone() in 5.4. So @date_default_timezone_get() is somewhat > less useful than it used to be, as a function for detecting system > settings. > >> I think it is not too much asking to set it in php.ini or in your >> application. >> > > At least for MediaWiki, it's certainly more important to avoid > warnings than it is to have the right local timezone. UTC is used in > any case where consistency is important. Based on other posts to this > list, I don't think we're alone in this. For the record, the PHP 5.4+ date_default_timezone_get is equivalent to ini_get('date.timezone') ?: 'UTC' except that date_default_timezone_get will raise a warning and the above will not.