Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67565 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82768 invoked from network); 27 May 2013 22:57:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 May 2013 22:57:56 -0000 Authentication-Results: pb1.pair.com header.from=rdlowrey@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rdlowrey@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.180 as permitted sender) X-PHP-List-Original-Sender: rdlowrey@gmail.com X-Host-Fingerprint: 209.85.223.180 mail-ie0-f180.google.com Received: from [209.85.223.180] ([209.85.223.180:63511] helo=mail-ie0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4B/76-44058-2F4E3A15 for ; Mon, 27 May 2013 18:57:56 -0400 Received: by mail-ie0-f180.google.com with SMTP id b11so5302317iee.39 for ; Mon, 27 May 2013 15:57:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=MC6sx6xCKuL3c8oVuGJIxp7XIsFVrNcOxJgwtUkXTcw=; b=WuNI/IbwatCqP3BfqCEIkq237op4nUjhOHSuieOCHyO0577eOJzt6RLvkMlafKgzKs +QCSmYQYMXogR9KvPwYigbfAT4Ux9eWU4oUL+5NpIydWVkE5w/4NW3dnVOyY0e0vOQZ4 0uwfGLDLHlzfHOk86IA9TjxZfS4wbtzLAEwOmqx5XYrG76apDmVXVL514SXZxaoGNp18 fO5xmMgBIp34nMpWROf4pNPUrvG7W2vasxX5y/KonG5tN2TGZoL7eTlg+XLI7Ox45rrF FwU2l1d+a2hzE/j8dVKWAVyxMWAd4xEtBNsXZaD4CFzBXyCdUeBz5jBU9D9+DjRLeQrY CO9A== MIME-Version: 1.0 X-Received: by 10.50.111.233 with SMTP id il9mr5907911igb.103.1369695472014; Mon, 27 May 2013 15:57:52 -0700 (PDT) Received: by 10.50.56.103 with HTTP; Mon, 27 May 2013 15:57:51 -0700 (PDT) Date: Mon, 27 May 2013 18:57:51 -0400 Message-ID: To: "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: date.timezone E_WARNING -- Really necessary? What's the rationale? From: rdlowrey@gmail.com (Daniel Lowrey) Having started this thread I'd like to focus the discussion so we can actually get somewhere. Otherwise opinions will keep streaming in ad nauseum without any real progress. At issue here is not whether UTC makes sense as a default. The question is also not how we can automate the install process via package managers to set an appropriate default timezone. Additionally, this has nothing to do with perceived "laziness" on the part of people who don't want to add a line in the .ini file or define the default in their scripts. My problem with the current behavior is that it essentially *forces* the use of an .ini file by triggering an error if no default is assigned. As far as I know there is no other extension that punishes you for not using an .ini file. Further, my argument is that this behavior is undesirable and treats the CLI as a second class citizen by assuming PHP is only used as a web framework. I frequently have good reasons to run without an .ini file and this error is a roadblock to using PHP to program (and not to make web pages). Now, as far as I can tell the only argument put forward to justify triggering the error is (summarized): many people are too stupid to set a timezone and don't understand why the results of their date() calls are different from their own timezone. This results in many erroneous bug reports. So the question I would like to see addressed is this: Is user stupidity a sufficient reason to punish people running without an .ini file (php -n)? If there are reasons besides "we get tons of mistaken bug reports and we need to cater to the very worst PHP programmers," I have yet to see them expressed.