Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69128 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20624 invoked from network); 14 Sep 2013 17:06:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Sep 2013 17:06:56 -0000 Authentication-Results: pb1.pair.com smtp.mail=rquadling@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rquadling@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: rquadling@gmail.com X-Host-Fingerprint: 209.85.223.179 mail-ie0-f179.google.com Received: from [209.85.223.179] ([209.85.223.179:57674] helo=mail-ie0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 74/54-22237-0B794325 for ; Sat, 14 Sep 2013 13:06:56 -0400 Received: by mail-ie0-f179.google.com with SMTP id e14so4614386iej.24 for ; Sat, 14 Sep 2013 10:06:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=973CfjU8tUrA3kjGcXegP3lZCISsUwZ3EHabG9Xnn8w=; b=U4QCQuMlaGGTFMYvL8LtvqCfilCKxKn30YwOj0N2ku90Gjr4FGxZFRsnVtmGbl6F+o n6lMwB8MwWxB3KBlxbyFRjs/eMZAYG1XPYmBzMetYrVnBuCc8FQNfDVOQDhIilsGwLPt 20YfSmRC7y+GAWffHbkART6x36oniRSERM5HxAaRzUhjDyStaUg7H+MBhEOUmF2+WEVg wNktxGr3Xt5F7U4F9hsnoZq4u7AkrUnwZF2KKwjn/l9cGPUAGJ330K6iLp36VEKa0HFF PGVTUIx89jxnKJWNTY/wpKzb0Tn/Zx6pem0Bfj78zfvXk+7Pny3wrG+5ujeBHojcATy1 hBgg== X-Received: by 10.43.162.136 with SMTP id mk8mr1466012icc.9.1379178413900; Sat, 14 Sep 2013 10:06:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.226.112 with HTTP; Sat, 14 Sep 2013 10:06:33 -0700 (PDT) Reply-To: RQuadling@GMail.com In-Reply-To: References: Date: Sat, 14 Sep 2013 18:06:33 +0100 Message-ID: To: Nikita Popov Cc: Derick Rethans , Daniel Lowrey , PHP internals Content-Type: multipart/alternative; boundary=001a11c20332714d2e04e65affa2 Subject: Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale? From: rquadling@gmail.com (Richard Quadling) --001a11c20332714d2e04e65affa2 Content-Type: text/plain; charset=UTF-8 On 2 September 2013 12:16, Nikita Popov wrote: > On Mon, Sep 2, 2013 at 11:47 AM, Derick Rethans wrote: > > > On Wed, 28 Aug 2013, Nikita Popov wrote: > > > > > 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 = > > > > No, php.ini-development should have what PHP does by default. > > > > That's not the case currently and as far as I know that is so > intentionally. ini-development and PHP defaults differ not just in obscure > extension settings, but also in core options like error_reporting, > short_tags, maximum_execution_time, variables_order, register_argc_argv, > display_startup_errors, output_buffering, etc etc etc. If these differences > are not intentional, we should fix this. But I'm pretty sure they are. > > Nikita > Also remember that different SAPI's have defaults too. -- Richard Quadling Twitter : @RQuadling --001a11c20332714d2e04e65affa2--