Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67472 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50162 invoked from network); 24 May 2013 00:26:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 May 2013 00:26:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=rdlowrey@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rdlowrey@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.179 as permitted sender) X-PHP-List-Original-Sender: rdlowrey@gmail.com X-Host-Fingerprint: 209.85.223.179 mail-ie0-f179.google.com Received: from [209.85.223.179] ([209.85.223.179:54953] helo=mail-ie0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 13/F6-16824-3B3BE915 for ; Thu, 23 May 2013 20:26:27 -0400 Received: by mail-ie0-f179.google.com with SMTP id c13so10481118ieb.38 for ; Thu, 23 May 2013 17:26:25 -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=G/eqV99WXJn/WN9r8/E3SLSyXeOmRQuAYMjFOjiKQSI=; b=K5EK5alt8ZyGc1f+8Z80CFV4RoyGDjXuOO0BuFWtv+i/Jrw/NhObh4ywhZNwOcM5Ol Wd+yLU69jeNSdkCOrc3tGr0uOxLRJm4pbngqSS6CGlpJSYAgZM6Y2ER0cgnhsD7CcJ78 pQXMGJkoKO9KfBVuKeCmefje1zqQMrhpxL8hNjDamd4liXbjc4m9XS3BfD2Ux/p864d/ /EKIWetuyRJ5NfA7GCpRbvOrZMvVGlBN83sU51nkXRDFtyJQHBPyL+khVbpNAop6PgNo tjLDrQn0XbptMVhLHVLrETWDT+wMOE0woVQQTHi5zrIPQEPmI+l25tDthVxw1vbBY1fB P+Bg== MIME-Version: 1.0 X-Received: by 10.43.68.134 with SMTP id xy6mr11671153icb.48.1369355184919; Thu, 23 May 2013 17:26:24 -0700 (PDT) Received: by 10.50.56.103 with HTTP; Thu, 23 May 2013 17:26:24 -0700 (PDT) In-Reply-To: <519E77B4.2050503@sugarcrm.com> References: <519E77B4.2050503@sugarcrm.com> Date: Thu, 23 May 2013 20:26:24 -0400 Message-ID: To: Stas Malyshev Cc: "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale? From: rdlowrey@gmail.com (Daniel Lowrey) I guess my point is that I don't believe default settings should trigger errors. If it's a default setting, it's a default setting. Document it and move on. It's then the user's responsibility to define that value correctly if he/she wants something other than the default. I don't personally see much difference between triggering E_WARNING for date.timezone and -- for example -- open_basedir. There's no error to tell me that my script can access the entire filesystem without an open_basedir setting and that this could be a potential security risk. There's no E_WARNING to say that the default memory_limit value is 128M and that if I want to use more than that I need to define it in php.ini. Where does it stop? It seems like an eminently unsustainable practice to trigger errors for every possible oops in your .ini file. For me, the date.timezone warning has no positive benefit and provides real annoyance every single day. Is that the case for others? I can't say, that's why I'm complaining on the internals list :) On Thu, May 23, 2013 at 4:10 PM, Stas Malyshev wrote: > Hi! > >> 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 > > I'm not sure how this follows - CLI is capable of using ini file just > like the rest of SAPIs. Why not create it? > >> The "U" in UTC *does* stand for "Universal," after all. It's a >> sensible default and as such shouldn't > > I don't think it's a sensible default - people don't actually use UTC > when considering dates. A minority of people can use timezone that > coincides with UTC, but not very many use actual UTC. > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227