Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52563 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87123 invoked from network); 31 May 2011 13:57:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 May 2011 13:57:45 -0000 Authentication-Results: pb1.pair.com header.from=philip@roshambo.org; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=philip@roshambo.org; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain roshambo.org from 209.85.210.42 cause and error) X-PHP-List-Original-Sender: philip@roshambo.org X-Host-Fingerprint: 209.85.210.42 mail-pz0-f42.google.com Received: from [209.85.210.42] ([209.85.210.42:40070] helo=mail-pz0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 45/00-21232-7D3F4ED4 for ; Tue, 31 May 2011 09:57:44 -0400 Received: by pzk37 with SMTP id 37so2182983pzk.29 for ; Tue, 31 May 2011 06:57:40 -0700 (PDT) Received: by 10.68.19.136 with SMTP id f8mr2432150pbe.173.1306850259996; Tue, 31 May 2011 06:57:39 -0700 (PDT) Received: from c-24-19-164-241.hsd1.wa.comcast.net (c-24-19-164-241.hsd1.wa.comcast.net [24.19.164.241]) by mx.google.com with ESMTPS id m9sm62649pbd.39.2011.05.31.06.57.38 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 31 May 2011 06:57:38 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii In-Reply-To: Date: Tue, 31 May 2011 06:57:36 -0700 Cc: Kalle Sommer Nielsen , marius adrian popa , PHP Developers Mailing List Content-Transfer-Encoding: quoted-printable Message-ID: <36AF85D9-01D5-43B0-9456-A288E740A85B@roshambo.org> References: To: Daniel Brown X-Mailer: Apple Mail (2.1084) Subject: Re: [PHP-DEV] removing some cruft From: philip@roshambo.org (Philip Olson) On May 28, 2011, at 10:42 AM, Daniel Brown wrote: > On Sat, May 28, 2011 at 06:05, Kalle Sommer Nielsen = wrote: >>=20 >> expose_php =3D Off? >=20 > I think what he and others mean is that they want the option to > leave the logo, credits, et cetera, completely out of the build at > compile time. We also have other possibilities here (this is not a proposal, but = rather, a list of options/ideas to ponder): 0. Do nothing 1. Disable expose_php within the distributed php.ini-* files Trivial, but changing [at least] php.ini-production is a real = possibility. 2. Disable expose_php by default within PHP We could do this too. Default =3D=3D=3D when no php.ini file is used. 3. Remove the specific PHP version from the exposed PHP header There are security concerns although I'm not sure what implications = (BC?) or real help this would offer. For example, version information = can be deciphered by other means (e.g., logos and credits change over = time) but maybe it's a help because, for example, displaying phpinfo() = requires direct user action. See also #4. 4. Change its behavior and usage For example, phpinfo() relies upon expose_php for both the logo and = credits information to be displayed. However, the phpinfo() output = clearly exposes PHP (along with the version) regardless of the = expose_php setting so we could instead embed the logo into phpinfo(), = and display credits as per phpcredits(), instead of relying upon = expose_php for this as done currently. In other words, expose_php could = be off yet phpinfo() behavior would remain close to the same with either = a little extra markup, or appended credits near the license. But this raises the question: Why do we have magical logo and credit = guids? 5. And a performance review People are concerned with performance issues (e.g., images loaded into = memory) although I'm not sure what real performance is lost (some have = made guesses). Is there a real issue with performance here? How does it = compare with, let's say, loading an additional extension? If so, how can = it be helped? Regards, Philip