Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58932 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83812 invoked from network); 14 Mar 2012 17:38:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Mar 2012 17:38:04 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.170 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.160.170 mail-gy0-f170.google.com Received: from [209.85.160.170] ([209.85.160.170:35067] helo=mail-gy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/A5-51575-A77D06F4 for ; Wed, 14 Mar 2012 12:38:02 -0500 Received: by ghbg2 with SMTP id g2so2419514ghb.29 for ; Wed, 14 Mar 2012 10:37:59 -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=S9ZXa7KUZ2L9isiUjt+wDvD9KnoqjpDzCVUn+zO5QpI=; b=HtZ1s01DT/a+JiTvkbsW0PdBV00HJG3iH48pGQjzuN4aRufiQoHpoankFsm54mGdTO KV/bRs1/DW2eokxy5MkGjzOrUd9LWiZ+3pPsEKaAV2OxCXB5FDXID43W5uQKo6zFybS6 OcUEOkKkdoSpeTDi8KrshHcu1Fr6/nLanoP72TChag2yHEnmX5B0ewTUf/lZP5Ggx3Q0 C+JW9mYwySUiefLHwBXWseBUEe0RsUMBowm9vfmgwjZHxrCWm3+paMjggaj7asHeaI6r pv0lNaiFtlQNIZJBFeI6HPXqhjMHBB5jTKVO5oZmr/0WXtxdAQZ1mSqnZ2BtGQg9pmwH WxSQ== MIME-Version: 1.0 Received: by 10.68.72.9 with SMTP id z9mr3992439pbu.124.1331746679386; Wed, 14 Mar 2012 10:37:59 -0700 (PDT) Received: by 10.68.75.136 with HTTP; Wed, 14 Mar 2012 10:37:59 -0700 (PDT) In-Reply-To: <4F60D511.1050802@lerdorf.com> References: <4F60D511.1050802@lerdorf.com> Date: Wed, 14 Mar 2012 18:37:59 +0100 Message-ID: To: Rasmus Lerdorf Cc: RQuadling@gmail.com, PHP Internals Content-Type: multipart/alternative; boundary=f46d04170191c1724204bb376f24 Subject: Re: [PHP-DEV] set the PHP_INI_ENTRY_* values the same as for php.ini-production From: tyra3l@gmail.com (Ferenc Kovacs) --f46d04170191c1724204bb376f24 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Mar 14, 2012 at 6:27 PM, Rasmus Lerdorf wrote: > On 03/14/2012 10:09 AM, Ferenc Kovacs wrote: > > On Mon, Jul 25, 2011 at 12:34 PM, Richard Quadling >wrote: > >> Maybe, and this is right of the top of my head, if PHP is installed > >> for a production environment with no INI file, or if an ini file > >> doesn't alter any of the core settings (maybe a separation of INI > >> files for core and extensions?), it could be labelled/considered as a > >> virgin PHP install. Something which could be marketed / advertised. > >> Essentially, the PHP Group agree that for a production environment, > >> these are the settings that are the safest to use. If there are > >> considerations that need to be made for shared hosters, then maybe > >> some mechanism to set these appropriately. So, for a user coming to an > >> ISP and looking at hosting, they can see "We use Virgin PHP Settings" > >> or something like that and know that they won't be different to a > >> documented "standard". Add this labelling to the phpinfo() page and it > >> makes things very very clear what is in play. > >> > >> Richard. > >> > >> -- > >> Richard Quadling > >> Twitter : EE : Zend : PHPDoc > >> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea > >> > > > > bump > > The biggest problem with the concept of virgin PHP settings being geared > for production is that by definition that isn't very developer friendly. > Keeping the learning curve shallow has always been a goal for PHP which > is why things like display_errors exist. A new developer may not have > any idea where to look for PHP errors and might give up when all he gets > is a blank page. > > The assumption is that by the time you are ready to put something into > production you have spent a little bit of time with PHP and you likely > have stumbled across the suggested production php.ini which is then > trivial to apply. > > -Rasmus > > imo the average developer will have php installed through some wamp stack or the distribution/package manager of his platform, so he/she will have a php.ini with some sane defaults. another idea coming from Philip is to have a php.ini-default which could match with the hard-coded defaults. either way, I think it would be really nice to have a php.ini which we could refer as default in the documentation, and people shouldn't need to look up the php-src to figure out what are the hard-coded defaults and how those are different from the production/development values. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --f46d04170191c1724204bb376f24--