Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67546 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5916 invoked from network); 27 May 2013 07:02:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 May 2013 07:02:25 -0000 Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.50 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 74.125.82.50 mail-wg0-f50.google.com Received: from [74.125.82.50] ([74.125.82.50:39314] helo=mail-wg0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F8/4E-32733-00503A15 for ; Mon, 27 May 2013 03:02:25 -0400 Received: by mail-wg0-f50.google.com with SMTP id k13so4247045wgh.5 for ; Mon, 27 May 2013 00:02:21 -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=nGJ3gVB0A0C37HXO+SHJlx3gy+MW3QXEfBXhB7EqW9I=; b=BcQj1j9DRqt9vsYbl+myYJz3ZZxXvVxw6/K4nJzC3RTFClYZqY53KrTuUS1PrPiPE0 MU6s4p5fHq3iC6J6imYUIrVr86ZycjFuj+x99ib6HJfdxdq9tMh57W9aVHbqLciBGaG1 VyXVFdEsEPDIwQSFAD9XqQqezPKmOQBxiveSXYYUCywPTMVB2UujxOIrgxDr6LoPG/G1 4laLSJp54vUtkdMEg5Od4wNtRn8qaRkS8rVAhBeTaRc96AqF0agPhaNVZKu3qyB5+XgG B0/BUJmQsz2shxKjI8A9oVIUxxk6RsCjEabEdIfScfi5zIaCg7C446IP5E3tPO0GlRYj vjPQ== MIME-Version: 1.0 X-Received: by 10.180.21.167 with SMTP id w7mr7183584wie.2.1369638141348; Mon, 27 May 2013 00:02:21 -0700 (PDT) Received: by 10.194.90.39 with HTTP; Mon, 27 May 2013 00:02:21 -0700 (PDT) In-Reply-To: <2A364FDE69FD46ECAECA939341E814DF@NeiRoze> References: <51A092FC.4010700@wikimedia.org> <51A1AF3E.5000704@sugarcrm.com> <51A1F701.4080706@lsces.co.uk> <1287105095.20130526154318@cypressintegrated.com> <1445582130.20130526204520@cypressintegrated.com> <2A364FDE69FD46ECAECA939341E814DF@NeiRoze> Date: Mon, 27 May 2013 00:02:21 -0700 Message-ID: To: Reinis Rozitis Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=047d7b6d9a88e2d29d04ddadbae0 Subject: Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale? From: kris.craig@gmail.com (Kris Craig) --047d7b6d9a88e2d29d04ddadbae0 Content-Type: text/plain; charset=ISO-8859-1 On Sun, May 26, 2013 at 11:49 PM, Reinis Rozitis wrote: > 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 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > Well yes, but you could make the same argument for a lot of the configure options that are already in place. Personally, if such a configure option existed, I'd probably use it myself, since date.timezone is generally the only manual modification I have to make to php.ini, anyway. If I could set that in configure, I wouldn't have to bother with php.ini at all when doing installs. If there's no downside to adding that option (at least I haven't seen anybody offer one yet) and it has a reasonable use-case (which it does), then why not? It would certainly make a lot more sense than manually editing the source code, particularly for sysadmins who might not have any programming experience. --Kris --047d7b6d9a88e2d29d04ddadbae0--