Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67553 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21963 invoked from network); 27 May 2013 08:52:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 May 2013 08:52:52 -0000 Authentication-Results: pb1.pair.com smtp.mail=leafnode@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=leafnode@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.173 as permitted sender) X-PHP-List-Original-Sender: leafnode@gmail.com X-Host-Fingerprint: 209.85.217.173 mail-lb0-f173.google.com Received: from [209.85.217.173] ([209.85.217.173:44026] helo=mail-lb0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 61/71-32733-3EE13A15 for ; Mon, 27 May 2013 04:52:52 -0400 Received: by mail-lb0-f173.google.com with SMTP id t10so6450796lbi.4 for ; Mon, 27 May 2013 01:52:49 -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=Kzxjtas7+dWQz8Wo73KwtJ7hRpEqKpBzy2jvO9Cr0Fg=; b=bptD1AzZXsmrEgnefLPsxKT+vdth6PuQOGza6xZyX5jCJCVDMboiA0NOnpxmMWVMna IKZoms3+ijXN6urDCMfdLRTiFevbIsy49Ok0K0h9tsdN/jK63IyIuGCxUmhZg8dOisj7 /GDxV+E/NBtyyVU0nZ0meJqqkU2oGWcEt0KvhK6s+cxMKTvLFMklKBujy1NlGe82+6yN qE3twD4b6C4rUptQ/fpIp0jqVLTlrWps/jRsJyp7+DMCuRUF163KEyBw98E6iltUNBw3 JoTuO86t948NF27Y3T0DkYBhvuWj9O1Yce4mr1tRQdQG+FBzsir+uidm/34UhOyHVmYx XZWw== MIME-Version: 1.0 X-Received: by 10.112.89.195 with SMTP id bq3mr13928307lbb.19.1369644769005; Mon, 27 May 2013 01:52:49 -0700 (PDT) Received: by 10.114.68.132 with HTTP; Mon, 27 May 2013 01:52:48 -0700 (PDT) In-Reply-To: <1365CA005E814697B447DD55A243832A@apfelbox.net> References: <51A092FC.4010700@wikimedia.org> <51A1AF3E.5000704@sugarcrm.com> <51A2D395.5030302@sugarcrm.com> <1022965181.20130527011024@cypressintegrated.com> <51A2FD10.7030906@gmail.com> <293168642.20130527032001@cypressintegrated.com> <1365CA005E814697B447DD55A243832A@apfelbox.net> Date: Mon, 27 May 2013 10:52:48 +0200 Message-ID: To: Jannik Zschiesche Cc: Pierre Joye , Sanford Whiteman , =?ISO-8859-2?Q?Leszek_Krupi=F1ski?= Content-Type: multipart/alternative; boundary=001a11c3772cecd9c304ddaf4575 Subject: Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale? From: leafnode@gmail.com (Leszek Krupinski) --001a11c3772cecd9c304ddaf4575 Content-Type: text/plain; charset=ISO-8859-1 On Mon, May 27, 2013 at 10:35 AM, Jannik Zschiesche wrote: > would it be hard to just show the notice as soon as the user actually uses > a function regarding to date/time (and not before)? > > Currently the message is shown all the time, at the start of the script - > even if the script is as simple as > > > echo 1; > > > Wouldn't it be more useful if the notice only appears, if I actually use a > date/time-function? > > That wouldn't solve the problem, because date/time functions are very common, and the warning would still show up for too many people. So we would "solve" the problem for just a small percent of people, while not solving the key issue. Also, the check "if timezone not set show warning" would have to be shifted from initialization to call of each and every datetime function. --Leszek --001a11c3772cecd9c304ddaf4575--