Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67506 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76936 invoked from network); 24 May 2013 21:35:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 May 2013 21:35:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.53 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.219.53 mail-oa0-f53.google.com Received: from [209.85.219.53] ([209.85.219.53:63466] helo=mail-oa0-f53.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 97/12-64297-B3DDF915 for ; Fri, 24 May 2013 17:35:55 -0400 Received: by mail-oa0-f53.google.com with SMTP id g12so6663604oah.40 for ; Fri, 24 May 2013 14:35:52 -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=j34l6bs7Ul207aZFeyOGmoBcAU2lfCCc1S5KOBXyY5U=; b=s7Bl8qLWadkN79wB4YXOl/CiNFkxMVJ5tjBFXJ6BAEgnSGrohq5ZdhAyA/5uWn8v+h fXFmTwrZ/tTVHTwuGmNyH/JqoVorRHqKYSdHeoWqzHInsKRi7Y06NQDZrxyOKgmIXT5d 6rMKEgdh5RBUDav0q5VUv8SGE1tilx8lxgKZAhHrVuZX/D6qzycwAKJgNbqCPuAaFL8o KQGhuMbvAQdjChn3+9NMsQzy3k6p2vpMjQK7QDDz3WY2S0mwU5nZFbKqPfy7HBKVJVDZ bFfy5xzVnnMhQ4+0673iilFvYIcrmpgkwsnXlx+VhFPFSDt3rrx1QrjI7aJFLnyJ7TN2 VHbQ== MIME-Version: 1.0 X-Received: by 10.182.225.199 with SMTP id rm7mr13274117obc.20.1369431352273; Fri, 24 May 2013 14:35:52 -0700 (PDT) Received: by 10.182.59.108 with HTTP; Fri, 24 May 2013 14:35:52 -0700 (PDT) In-Reply-To: References: <519E77B4.2050503@sugarcrm.com> Date: Fri, 24 May 2013 23:35:52 +0200 Message-ID: To: Derick Rethans Cc: Daniel Lowrey , Stas Malyshev , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11c2f0684c405204dd7d9577 Subject: Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale? From: nikita.ppv@gmail.com (Nikita Popov) --001a11c2f0684c405204dd7d9577 Content-Type: text/plain; charset=ISO-8859-1 On Fri, May 24, 2013 at 2:40 AM, Derick Rethans wrote: > On Thu, 23 May 2013, Daniel Lowrey wrote: > > > I guess my point is that I don't believe default settings should > > trigger errors. If it's a default setting, it's a default setting. > > No - you, as an admin, are required to make an informed decision on what > you want your timezone to be. There have been way too many bug reports > where people had no clue, so now we throw a warning. > Sorry, but I fail to see why date.timezone needs special handling. What makes the date.timezone setting so important, that it is the only one which value you are required to set? There are settings that are arguably a lot more important than this, but which do not throw such warnings. E.g., why isn't there a warning for cases where error_reporting is not explicitly specified? I can't count the number of StackOverflow questions caused by bad error_reporting settings and I'm very sure this number surpasses complains about timezones by several orders of magnitude. Yet - of course! - we do no such thing, for it is senseless. After all, there *is* a reason why we have defaults for ini settings. People should only be required to changed them when necessary. Date.timezone should be no exception to this. Nikita --001a11c2f0684c405204dd7d9577--