Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:58929 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79471 invoked from network); 14 Mar 2012 17:27:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Mar 2012 17:27:53 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 74.125.83.42 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 74.125.83.42 mail-ee0-f42.google.com Received: from [74.125.83.42] ([74.125.83.42:48501] helo=mail-ee0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D0/B4-51575-815D06F4 for ; Wed, 14 Mar 2012 12:27:53 -0500 Received: by eekb57 with SMTP id b57so1181335eek.29 for ; Wed, 14 Mar 2012 10:27:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding:x-gm-message-state; bh=fJuTnqPku3sMlAfgEv7nXtkN0J9MHdz2QSBYIWDwRAE=; b=ciMWssGPxcBQo0PEJpuJvm48Xmt8GfNLdP3g/6TeecqOYUgohxzErJciVXXwaYhMId mhp1CdDLuJjawCLTwMspnIw1DSZPa9d0/v8gsHaWUMXpHECGOUZbnxQEhkRSsuBvSg3g h/bIXPXwaepaLBHy7mz/72TSzn8mToM3ejnR9AULweGbTVMnA8pX3DhNM/U57hxmafc+ Uan8tWlfdD1Pn4UgoLtEJKY7/CLDhrjvk2uM5mjvio7vsHO1g3dDMb0PPpWot+EC3fE0 +ZRnMBAWcce88rSPmEBDhKB6xQl7W55hQW/kgSeAnek6qcEhPgou2s4OnPsetCqv/thc +4OQ== Received: by 10.229.75.142 with SMTP id y14mr1133005qcj.144.1331746068424; Wed, 14 Mar 2012 10:27:48 -0700 (PDT) Received: from [192.168.200.5] (c-50-131-44-225.hsd1.ca.comcast.net. [50.131.44.225]) by mx.google.com with ESMTPS id dm3sm9829852qab.8.2012.03.14.10.27.46 (version=SSLv3 cipher=OTHER); Wed, 14 Mar 2012 10:27:47 -0700 (PDT) Message-ID: <4F60D511.1050802@lerdorf.com> Date: Wed, 14 Mar 2012 10:27:45 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Ferenc Kovacs CC: RQuadling@gmail.com, PHP Internals References: In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQnaSiZInyHyHVbGEHjdZ+NKPS0815eqSU35/pSoJhxbz3P5scTxsdwpD6KRXr1ixQHnhAkt Subject: Re: [PHP-DEV] set the PHP_INI_ENTRY_* values the same as for php.ini-production From: rasmus@lerdorf.com (Rasmus Lerdorf) 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