Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67544 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2644 invoked from network); 27 May 2013 06:49:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 May 2013 06:49:34 -0000 Authentication-Results: pb1.pair.com header.from=r@roze.lv; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=r@roze.lv; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain roze.lv designates 213.175.74.1 as permitted sender) X-PHP-List-Original-Sender: r@roze.lv X-Host-Fingerprint: 213.175.74.1 roze.lv Received: from [213.175.74.1] ([213.175.74.1:19685] helo=zeona.lv) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D3/9D-32733-CF103A15 for ; Mon, 27 May 2013 02:49:33 -0400 Received: from NeiRoze (unknown [10.30.0.69]) by zeona.lv (Postfix) with SMTP id 3D5A320055EB8 for ; Mon, 27 May 2013 09:49:29 +0300 (EEST) Message-ID: <2A364FDE69FD46ECAECA939341E814DF@NeiRoze> To: References: <51A092FC.4010700@wikimedia.org><51A1AF3E.5000704@sugarcrm.com><51A1F701.4080706@lsces.co.uk><1287105095.20130526154318@cypressintegrated.com><1445582130.20130526204520@cypressintegrated.com> In-Reply-To: Date: Mon, 27 May 2013 09:49:27 +0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 Subject: Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale? From: r@roze.lv ("Reinis Rozitis") > Again, why can't we just bypass this whole argument by adding a configure > option? Something like --date.default_timezone="America/Los_Angeles"? It > could then build that in so it'll assume that if there's no php.ini or if > it's just not set in there. Problem solved, everybody's use-case covered. If you build php yourself from source there is always the option to throw (comment out) that one particular E_WARNING line ext/date/php_date.c.(that is something I do for example for mysqlnd which complains about non-existing character set on older sphinxsearch instances). But if the OP is annoyed by typing "php -d date.timezone=... myfile.php" each time he could just make an alias (or doskey in win environment). rr