Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81241 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88672 invoked from network); 27 Jan 2015 14:13:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jan 2015 14:13:10 -0000 Authentication-Results: pb1.pair.com smtp.mail=bobwei9@hotmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=bobwei9@hotmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain hotmail.com designates 65.55.111.83 as permitted sender) X-PHP-List-Original-Sender: bobwei9@hotmail.com X-Host-Fingerprint: 65.55.111.83 blu004-omc2s8.hotmail.com Received: from [65.55.111.83] ([65.55.111.83:56552] helo=BLU004-OMC2S8.hotmail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E0/55-59067-3FC97C45 for ; Tue, 27 Jan 2015 09:13:09 -0500 Received: from BLU436-SMTP156 ([65.55.111.71]) by BLU004-OMC2S8.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Tue, 27 Jan 2015 06:13:05 -0800 X-TMN: [m4f+V/QsKuq+eD2E+A1iIMH/fcn0e5Lg] X-Originating-Email: [bobwei9@hotmail.com] Message-ID: Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\)) In-Reply-To: <54C77B5C.5010000@beccati.com> Date: Tue, 27 Jan 2015 15:12:57 +0100 CC: Nikita Popov , Derick Rethans , PHP Internals Content-Transfer-Encoding: quoted-printable References: <54C732F3.8050304@beccati.com> <54C77B5C.5010000@beccati.com> To: Matteo Beccati X-Mailer: Apple Mail (2.1990.1) X-OriginalArrivalTime: 27 Jan 2015 14:13:02.0609 (UTC) FILETIME=[5CAD5810:01D03A3B] Subject: Re: [PHP-DEV] [RFC] Remove the date.timezone warning From: bobwei9@hotmail.com (Bob Weinand) > Am 27.01.2015 um 12:49 schrieb Matteo Beccati : >=20 > On 27/01/2015 12:28, Nikita Popov wrote: >> So let the distros solve it ... and allow PHP to still be usable = without an >> ini file. >=20 > So, I install php from sources and (simulating the RFC): >=20 > # php -d date.timezone=3D'' -r 'var_dump(@date("Y-m-d H:i:s"));' > string(19) "2015-01-27 11:39:43" > # date > Tue Jan 27 12:39:45 CET 2015 >=20 > how many people would think "WTF"? >=20 > how many "oh right, PHP defaults to UTC unless I change my php.ini"? >=20 > how many "my mistake! of course my laptop should use UTC!"? >=20 >=20 > Cheers > --=20 > Matteo Beccati >=20 > Development & Consulting - http://www.beccati.com/ If you use the distros default, it often is UTC too. Then we have this = same issue, just without warning. This warning often doesn't help at = all, because it just doesn't appear at all. If you use no ini, you probably are much more aware of that already... Bob=