Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67566 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84672 invoked from network); 27 May 2013 23:16:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 May 2013 23:16:24 -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.217.177 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.217.177 mail-lb0-f177.google.com Received: from [209.85.217.177] ([209.85.217.177:46027] helo=mail-lb0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/D6-44058-549E3A15 for ; Mon, 27 May 2013 19:16:22 -0400 Received: by mail-lb0-f177.google.com with SMTP id o10so7027786lbi.8 for ; Mon, 27 May 2013 16:16:18 -0700 (PDT) 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=A1tn0jhxfT4xfPrZlbPVj0pA4nKVTwVTC1KDWcODGEs=; b=sG9Z++o6FK1Uu4dQ1DRJNt0WMbKv0vs+/Hk2QBxGicjjUEweh7mQ3eCsszK/BDiCEc 3kKd6T/FJoHLQ/DGCpo6Pwl90WfhuV/FBecA7dJqIDND42uoH9V6equ2rfmcNmfJVdDp Ds+U8RBkw4dGGYKvp4Z5oGzYcJRRBy7tWnMoxiutsJ6kk9PQV8NK3+1Spnl+ryMupwCo 1AxgYGxLeeZWcYHVuClkR6LeyFoxmLxxuWPyFU3QFGcPiAutGblrwjMBKg3Onij/+H4z 0FTp90B+qJnYn1USvAh4Tlokx/qNuufKftFlb2VffljZtTwzpDpZV/cHoLahIPwDj1Ad F4ng== MIME-Version: 1.0 X-Received: by 10.152.3.65 with SMTP id a1mr15266434laa.40.1369696577938; Mon, 27 May 2013 16:16:17 -0700 (PDT) Received: by 10.112.138.135 with HTTP; Mon, 27 May 2013 16:16:17 -0700 (PDT) In-Reply-To: References: Date: Tue, 28 May 2013 01:16:17 +0200 Message-ID: To: Daniel Lowrey Cc: "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Re: date.timezone E_WARNING -- Really necessary? What's the rationale? From: pierre.php@gmail.com (Pierre Joye) On Tue, May 28, 2013 at 12:57 AM, Daniel Lowrey wrote: > > 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. No it does not. You can use: - php -d ... - date_default_timezone_set > 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. It is not one of the arguments. The arguments are bad TZ, invalid TZ or inconsistent in system's TZ, which causes hard to catch bugs (and not possible to fix), non portable code (if you rely on a bad TZ), to name only a few. And I stop here for this discussion, I do not see any new arguments on both sides and a default TZ will very unlikely happen. Packagers could deal with that easily and application developers as well. Cheers, -- Pierre @pierrejoye | http://www.libgd.org