Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67564 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 67768 invoked from network); 27 May 2013 19:05:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 May 2013 19:05:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=petercowburn@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=petercowburn@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.41 as permitted sender) X-PHP-List-Original-Sender: petercowburn@gmail.com X-Host-Fingerprint: 209.85.219.41 mail-oa0-f41.google.com Received: from [209.85.219.41] ([209.85.219.41:44170] helo=mail-oa0-f41.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E7/64-44058-98EA3A15 for ; Mon, 27 May 2013 15:05:45 -0400 Received: by mail-oa0-f41.google.com with SMTP id n9so9191001oag.14 for ; Mon, 27 May 2013 12:05:42 -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=guUKl0s/YtAnWxtqdGO6Cp7TnxTTY/PSQLVnR8FPxcA=; b=IZ5puEJnKXtilqn8HhWo3uLBRbSOqSFLkAFpJIXtvjVw8RxGUvLNXsoM2mMZeR1Dyo uge5Ml1Q2IxO7t6mQj9AduclBZFAjsFweXvpH8AlyAzxsg+TP9Tb6YAunHCAhENPpLj+ j1SUeFNj9hOm+yb9LaYs8aq27Hb6/0QPfoJUPIt2OFew/7gYp+z5Y0K7MULxsmeXDN/j 53ES207CNvttLbPgih7nx22ILyYMPYwqQBTgy5TSQSNNU0gIe4n/NFVxCiqpWfA128Nw 3ZjoIiweBNHiqpWEAMOVcOOq9Iod4oawmaXUXc331X/3vh3ohuzsDNGarnLAnOiQuUjA w6dw== X-Received: by 10.182.112.133 with SMTP id iq5mr18716373obb.75.1369681542449; Mon, 27 May 2013 12:05:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.80.99 with HTTP; Mon, 27 May 2013 12:05:02 -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 20:05:02 +0100 Message-ID: To: Jannik Zschiesche Cc: Pierre Joye , Sanford Whiteman , =?ISO-8859-2?Q?Leszek_Krupi=F1ski?= Content-Type: multipart/alternative; boundary=089e0149cfe0cb5bd604ddb7d588 Subject: Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale? From: petercowburn@gmail.com (Peter Cowburn) --089e0149cfe0cb5bd604ddb7d588 Content-Type: text/plain; charset=ISO-8859-1 On 27 May 2013 09:35, Jannik Zschiesche wrote: > Hello, > > > 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? > You're describing the current behaviour; unless I'm missing something obvious, the warning is only displayed when you try to do something date-related. Your example script should not be presenting any warnings, regardless of the date.timezone INI setting or lack thereof. > > > -- > Cheers > Jannik > > --089e0149cfe0cb5bd604ddb7d588--