Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81246 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3541 invoked from network); 27 Jan 2015 15:52:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jan 2015 15:52:05 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@beccati.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=php@beccati.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain beccati.com designates 176.9.114.167 as permitted sender) X-PHP-List-Original-Sender: php@beccati.com X-Host-Fingerprint: 176.9.114.167 spritz.beccati.com Received: from [176.9.114.167] ([176.9.114.167:35019] helo=mail.beccati.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0D/B7-59067-424B7C45 for ; Tue, 27 Jan 2015 10:52:05 -0500 Received: (qmail 24643 invoked from network); 27 Jan 2015 15:52:00 -0000 Received: from home.beccati.com (HELO ?192.168.1.202?) (88.149.176.119) by mail.beccati.com with SMTP; 27 Jan 2015 15:52:00 -0000 Message-ID: <54C7B413.3010604@beccati.com> Date: Tue, 27 Jan 2015 16:51:47 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Bob Weinand CC: Nikita Popov , Derick Rethans , PHP Internals References: <54C732F3.8050304@beccati.com> <54C77B5C.5010000@beccati.com> <54C7AE69.3090400@beccati.com> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Remove the date.timezone warning From: php@beccati.com (Matteo Beccati) On 27/01/2015 16:39, Bob Weinand wrote: >> Actually, the example ini files could even start with a friendly reminder that date.timezone should be set. > > Not arguing here. I'm on your side here, we can give the timezone a better visibility in the ini without problems. Good :) > The point is just to have date() (with UTC obviously) usable without getting warned in a simple ./sapi/cli/php -r '/* something with date() */' call. And no, I don't want to always forget to explicitly set "-ddate.timezone=UTC". It's not comfortable that way. So, you'd prefer to make life harder for end users in order to make life easier to those calling sapi/cli/php without a php.ini. To me, it doesn't sound like a good plan, sorry. I don't get why echo 'date.timezone=UTC' >> $prefix/lib/php.ini isn't comfortable enough for you. Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/