Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81199 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99633 invoked from network); 27 Jan 2015 04:32:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jan 2015 04:32:55 -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.216.180 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.180 mail-qc0-f180.google.com Received: from [209.85.216.180] ([209.85.216.180:59889] helo=mail-qc0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B3/F2-17708-6F417C45 for ; Mon, 26 Jan 2015 23:32:54 -0500 Received: by mail-qc0-f180.google.com with SMTP id r5so10398862qcx.11 for ; Mon, 26 Jan 2015 20:32:51 -0800 (PST) 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=EhZsendz7gbVMvcvCvdKV6Byzu7ICqL3vvBdchy/7u8=; b=fe18CrH7hXfK/oQ4UJSC8zhHQPsW60qQeA8g9bvaY321rgw7Lr5V7Mg+8WsaJ6zUG8 SF/L/6O5kqeRRySyIp4ufItrtuROka7QjqhfjP2O4VSCRbktK/24OMkqnifNPq3ICLuW BGtlcwzU9AmKS7g6p0ucI0LOqfCiD9hr4HRgOOdXnI9lQxqI8z7lP8LlEGywYH5b0TwX RV3XFoNPTwhDBahj0RfiBTF4ftktLHKLov/nwieiBMEaUmQ9HdgI1V4vkRPt2BumuUX5 DxXraTGbMhU+XrmhhqsEgyg0ywsLW81EkWQIkX0Cmxow87ec4Xa69b7LwxzSCF2DgHDd 0wGQ== MIME-Version: 1.0 X-Received: by 10.224.28.198 with SMTP id n6mr4177962qac.15.1422333171370; Mon, 26 Jan 2015 20:32:51 -0800 (PST) Received: by 10.96.3.168 with HTTP; Mon, 26 Jan 2015 20:32:51 -0800 (PST) Received: by 10.96.3.168 with HTTP; Mon, 26 Jan 2015 20:32:51 -0800 (PST) In-Reply-To: References: Date: Tue, 27 Jan 2015 11:32:51 +0700 Message-ID: To: Yasuo Ohgaki Cc: Bob Weinand , PHP internals , Kalle Sommer Nielsen Content-Type: multipart/alternative; boundary=001a11c2cc9a6e918c050d9abfaa Subject: Re: [PHP-DEV] [RFC] Remove the date.timezone warning From: pierre.php@gmail.com (Pierre Joye) --001a11c2cc9a6e918c050d9abfaa Content-Type: text/plain; charset=UTF-8 On Jan 27, 2015 11:25 AM, "Yasuo Ohgaki" wrote: > > Hi Kalle and all, > > On Tue, Jan 27, 2015 at 12:56 PM, Kalle Sommer Nielsen > wrote: > > > I think the warning is fair as it is, if it is annoying for small use > > cases like on the CLI then simply: php -d date.timezone=UTC -r "echo > > date('H:i:s');" or the dirty way by using the silent operator. It used > > to be a notice prior 5.3 I think or something. > > > > While I do agree that most applications should be using UTC, which > > should be set by default we sometimes need to tell userland the hard > > way how things work, and/or what they should care about, like the > > E_WARNING, E_CORE_ERROR, E_DEPRECATED for old php.ini settings. > > > > -1 for removing it from my side. > > > > I can understand your argument. > Perhaps, we may reconsider to introduce E_DEBUG/E_USER_DEBUG for these > purposes. > There are many functions, e.g. file related, that I feel E_WARNING is > excessive. I do not have a strong opinion on that. So keep it or make it UTC default but please do not add yet another warning/notice/whatever. Also, setting a timezone is not about Dev or other fancy tasks, it is about making datetime processing right. If anything I would enforce the default at configure/build time. So it at least gets the correct one from a host point of view. Cheers, Pierre --001a11c2cc9a6e918c050d9abfaa--