Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58931 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82493 invoked from network); 14 Mar 2012 17:36:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Mar 2012 17:36:28 -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.170 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 74.125.82.170 mail-we0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:51530] helo=mail-we0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 87/55-51575-A17D06F4 for ; Wed, 14 Mar 2012 12:36:27 -0500 Received: by werh12 with SMTP id h12so2299875wer.29 for ; Wed, 14 Mar 2012 10:36:23 -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=GUhGRFio2HvKyEEhdrPPrECe0xROXtuQngi0aLqjAjs=; b=Cac4xh/BAjCGL6ybSfO4weWwBDs2w/5mSUpXl24p7191Zx2sEOJ43Ml6t6pIheVhgb A2YY2I1sraH64vNiTn9HRTPEHDBlNLlqnRY+HRFwkzG00AMfUXYen6xkHnv2geroyVt6 tb/3RnAYxI5GXHSmTHJwCS+VMA1oCOqFHIHn6vQBz5Pp0kD+Ia7kFxG9ca8P5QNBGb1C 82TevAL5lea5NbRv//BdHiqnX29LL/FtzaRMsuYY5x2jTEbqyFJKD1gYkNxMzduN/zU9 0pTuaHrVhedHZE35Cx2fEwvjJ3jKmIFgfhHPcqLtz2BSV0vcm6QX/QXDo9Fcku0Y2QGi P6tg== MIME-Version: 1.0 Received: by 10.180.79.231 with SMTP id m7mr8366881wix.11.1331746583817; Wed, 14 Mar 2012 10:36:23 -0700 (PDT) Received: by 10.223.111.78 with HTTP; Wed, 14 Mar 2012 10:36:23 -0700 (PDT) In-Reply-To: <4F60D511.1050802@lerdorf.com> References: <4F60D511.1050802@lerdorf.com> Date: Wed, 14 Mar 2012 10:36:23 -0700 Message-ID: To: Rasmus Lerdorf Cc: Ferenc Kovacs , RQuadling@gmail.com, PHP Internals Content-Type: multipart/alternative; boundary=f46d044304ec0f2ce104bb376af6 Subject: Re: [PHP-DEV] set the PHP_INI_ENTRY_* values the same as for php.ini-production From: kris.craig@gmail.com (Kris Craig) --f46d044304ec0f2ce104bb376af6 Content-Type: text/plain; charset=ISO-8859-1 I'm curious: What would be the implications of having a third option to display a generic "catch-all" error instead of a blank page? For example, something like, "An error has occurred. Please check your server's error log for details." That would significantly reduce the confusion factor for inexperienced devs while, at least presumably, not presenting any security risk because no details are actually being included. --Kris On Wed, Mar 14, 2012 at 10:27 AM, 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 > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --f46d044304ec0f2ce104bb376af6--