Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81198 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98034 invoked from network); 27 Jan 2015 04:25:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jan 2015 04:25:34 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.175 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.216.175 mail-qc0-f175.google.com Received: from [209.85.216.175] ([209.85.216.175:51573] helo=mail-qc0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4D/92-17708-D3317C45 for ; Mon, 26 Jan 2015 23:25:34 -0500 Received: by mail-qc0-f175.google.com with SMTP id c9so10454075qcz.6 for ; Mon, 26 Jan 2015 20:25:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=JubeDv4nZYj5ZcWWGtY1WsrkRUa5qBwORKi5TDASKpk=; b=hG0ngHoAa3xyoi2MTsr9Q6qKKa2qxUG7Tt9l6KS4Gm9/RR2YGApUmxtu81Nj7V0NT9 ONFe8kJDy0W3bn34pfi3fM5y0u2Fi+ddXdlr4PbvJhW06Oagi3aNZ+mBAdOk3xdZ0x8e Wo2kLmTYyTtih3ODyt0wnm1kISNsQpCbqtbvrKDhf/iFWM9mXwcQlpy1PsIHnWAqaGxI p8o1/ybSF/Ou9DkAQpwq/QFmFoX5MWoZoMnFG1HmlJG6mgbJQhlX0sC7bN8YNwOU2EZt wyDOBYwdGzPg/q2+w13klYAaL1ixxYx3UMjI+DtlncwFOZggjBhPRrIUKcz6IinG4hS1 Uedw== X-Received: by 10.140.90.112 with SMTP id w103mr3864321qgd.65.1422332731439; Mon, 26 Jan 2015 20:25:31 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.93.70 with HTTP; Mon, 26 Jan 2015 20:24:51 -0800 (PST) In-Reply-To: References: Date: Tue, 27 Jan 2015 13:24:51 +0900 X-Google-Sender-Auth: P7vEYseXFz22x-Dvbw6Dnc4Zj04 Message-ID: To: Kalle Sommer Nielsen Cc: Bob Weinand , PHP Internals Content-Type: multipart/alternative; boundary=001a11c11a98364ae6050d9aa502 Subject: Re: [PHP-DEV] [RFC] Remove the date.timezone warning From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11c11a98364ae6050d9aa502 Content-Type: text/plain; charset=UTF-8 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. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a11c11a98364ae6050d9aa502--