Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68845 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51796 invoked from network); 2 Sep 2013 11:16:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Sep 2013 11:16:58 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; 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: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:61460] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 91/94-29856-9A374225 for ; Mon, 02 Sep 2013 07:16:58 -0400 Received: by mail-ob0-f170.google.com with SMTP id eh20so4462065obb.29 for ; Mon, 02 Sep 2013 04:16:55 -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=KlgGAVx79vLlX9+CEW8XAJHZ1mo3v6P3yInbzTJRJZk=; b=BNs2WvGjO5wt7xUsbRedaOVjMC1K1mRdXZe/k9Wgs4vA2IRhbNygHPUREHM+X3ylbW uOuQV9j31ea+lfA/2E8i1UeAR6+XCv2uZBGhX+9WXACfpOm/7rcy0CalomIEEE9cJnJi r1tAuB5sBjGZOuOoDc99pNy3URYNfFSOMZCXOLSBmRl04w7vF6dawm1u2O27g4ntsinS Fp9nFrZal2rgHL9YKv4eMdlRhCPZJG4rAlrkHNQA9wF7I7I9YZ1Qhn6+Bg/XdLPVJIwP A1daGMnC+yhVl3ObdaURR5wFK+i4DaLv22+m8WUD3YqlXnT0GIB9oNvFjec3t1Nc0UIH DPow== MIME-Version: 1.0 X-Received: by 10.60.65.37 with SMTP id u5mr48845oes.72.1378120614910; Mon, 02 Sep 2013 04:16:54 -0700 (PDT) Received: by 10.182.98.8 with HTTP; Mon, 2 Sep 2013 04:16:54 -0700 (PDT) In-Reply-To: References: Date: Mon, 2 Sep 2013 13:16:54 +0200 Message-ID: To: Derick Rethans Cc: Daniel Lowrey , PHP internals Content-Type: multipart/alternative; boundary=001a11c1ce68b5a48804e564b5f1 Subject: Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale? From: nikita.ppv@gmail.com (Nikita Popov) --001a11c1ce68b5a48804e564b5f1 Content-Type: text/plain; charset=ISO-8859-1 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 --001a11c1ce68b5a48804e564b5f1--