Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68636 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84360 invoked from network); 28 Aug 2013 12:49:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Aug 2013 12:49:17 -0000 Authentication-Results: pb1.pair.com header.from=ceceldada@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ceceldada@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) X-PHP-List-Original-Sender: ceceldada@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:58281] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8C/21-12893-CC1FD125 for ; Wed, 28 Aug 2013 08:49:16 -0400 Received: by mail-ob0-f170.google.com with SMTP id eh20so6689354obb.1 for ; Wed, 28 Aug 2013 05:49:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=EB5Zc6LObvPuU/05KL/1nEVwRkVLDcG42p40Dnzi67M=; b=GNxzuGO5nHFvLPet9kxIzmrtPXtApKOsB/EbMRRo6ZFX+ihHlC9IWnJnM1RKj7tYYj wl9FK3rngB7HA6el42SKfDilQA9Z9jLtCgtamsbDv6OPM3jScRo/OCVXrgQSMcHQwAgU wrbKjhoyogR2WluN5+zZM3xDzh3CaSLveYhEeN/nAOAvkdlaA04IZLbMnPaXRwdWQs/V vG0fFXmvM07geU5XoBkEXhBL+oQN2UDzW2oGRCn1Qy3fSE4bW4KySBHaSuQfmPzm9Fa9 Y1nr8f+rMAIiUEoyFnlLV84SR78eQcsKPlD6ntgyHQaYsc8RwEcyaEZVBz3PZF7qZ+ZZ U4Fg== X-Received: by 10.182.237.44 with SMTP id uz12mr1559228obc.11.1377694153915; Wed, 28 Aug 2013 05:49:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.101.161 with HTTP; Wed, 28 Aug 2013 05:48:53 -0700 (PDT) In-Reply-To: References: Date: Wed, 28 Aug 2013 09:48:53 -0300 Message-ID: To: Nikita Popov Cc: Daniel Lowrey , Derick Rethans , PHP internals Content-Type: multipart/alternative; boundary=e89a8ff1cf52a7461804e5016a3a Subject: Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale? From: ceceldada@gmail.com (Marcel Araujo) --e89a8ff1cf52a7461804e5016a3a Content-Type: text/plain; charset=UTF-8 I agree. 2013/8/28 Nikita Popov > On Thu, May 23, 2013 at 8:40 PM, Daniel Lowrey wrote: > > > I'm probably not the typical PHP user; I spend 99% of my PHP time > > using the CLI (and not web SAPIs). > > This means that I frequently run PHP without an .ini file. As a > > result, when I use any of the date/time > > functionality I invariably end up with this awesomeness: > > > > > Warning: date(): It is not safe to rely on the system's timezone > > settings blah blah blah. > > > > I was thinking about this again and maybe we could reach the following > compromise: > > * Set date.timezone = UTC as the default INI value > * In php.ini-production and php.ini-development uncomment the > ;date.timezone = > line, i.e. change it to > date.timezone = > > This would mean that people running PHP without an ini would get UTC as the > default and people running with an ini based on > php.ini-production/php.ini-development would get the warning. > > Short of completely dropping the warning this is the behavior that would > make most sense to me. (As people running without an ini obviously don't > care about setting the timezone) > > Thanks, > Nikita > -- *** Marcel Araujo Analista de Sistemas Desenvolvedor PHP/Zend/JavaScript/jQuery/NodeJS Linux User #490101 http://www.twitter.com/marcelarauj0 http://blog.marcelaraujo.me http://br.linkedin.com/in/marcelaraujo * --e89a8ff1cf52a7461804e5016a3a--