Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67500 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55928 invoked from network); 24 May 2013 16:53:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 May 2013 16:53:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:38288] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 05/7D-20943-50B9F915 for ; Fri, 24 May 2013 12:53:26 -0400 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 4E467DE13E; Fri, 24 May 2013 17:53:22 +0100 (BST) Date: Fri, 24 May 2013 09:53:20 -0700 (PDT) X-X-Sender: derick@whisky.home.derickrethans.nl To: =?UTF-8?Q?Leszek_Krupi=C5=84ski?= cc: =?UTF-8?Q?Johannes_Schl=C3=BCter?= , internals@lists.php.net In-Reply-To: <519F28AA.2090506@gmail.com> Message-ID: References: <519E77B4.2050503@sugarcrm.com> <519EFF2B.501@gmail.com> <1369384442.2381.3.camel@guybrush> <519F28AA.2090506@gmail.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-1779579869-1369414402=:5833" Subject: Re: [PHP-DEV] date.timezone E_WARNING -- Really necessary? What's the rationale? From: derick@php.net (Derick Rethans) --8323329-1779579869-1369414402=:5833 Content-Type: TEXT/PLAIN; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE On Fri, 24 May 2013, Leszek Krupi=C5=84ski wrote: > On 2013-05-24 10:34, Johannes Schl=C3=BCter wrote: > > On Fri, 2013-05-24 at 01:16 -0700, Kris Craig wrote: > > > Couldn't we take a page from MySQL's book and have a setup script tha= t > > > prompts the admin for this (much like theirs prompts for a root passw= ord). > > > A reminder to run it could be added as a nag at the end of the inst= all; > > > or, perhaps even have it give you these setup prompts at the end of m= ake > > > install. This way, any environment-specific settings we think should= be > > > there that don't have obvious defaults, like date.timezone, could be = added > > > as prompts in the setup script. This would enable even inexperienced > > > admins to add these settings without cluttering-up the bugs tracker. > > An estimate of >90% of our users who are actually installing PHP > > themselves are using distribution packages of PHP and not our sources. > > They expect `[yum|apt-get|...] install php` to be the whole installatio= n > > process. >=20 > Yet it's not uncommon for yum/apt-get/whatever to ask for input (like > mentioned MySQL asking for root password). I'm pretty sure apt can read the configuration from their "tzdata"=20 package to add the correct setting to php.ini: =09a=3D`debconf-show tzdata | grep Areas | sed 's/.*\s//'`; b=3D`debconf-sh= ow tzdata | grep Zones/$a | sed 's/.*\s//'`; echo "$a/$b" However, that is something for distributions to do as each=20 distribution's mechanism is different. cheers, Derick --8323329-1779579869-1369414402=:5833--