Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52564 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88779 invoked from network); 31 May 2011 14:06:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 May 2011 14:06:07 -0000 Authentication-Results: pb1.pair.com header.from=landeholm@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=landeholm@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: landeholm@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-iw0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:38019] helo=mail-iw0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A3/50-21232-EC5F4ED4 for ; Tue, 31 May 2011 10:06:07 -0400 Received: by iwn3 with SMTP id 3so4886752iwn.29 for ; Tue, 31 May 2011 07:06:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=M2EggWLMO+WXj6krhBM9QdtGcmTZrowGCKwBv/AlZ9Q=; b=sovs+ESg1I9D75tQTAUJjHJglQcotKkh6mK/iIdlry/JdPoqvXt2xwHa3+aVKtXFS/ Cl96EwNSc4ZpPmG+A4/OMuCibXrT2+eaoCS0cu5y7wuTpVZpn2cX1A/6Eg0keFlHtc0k hlMNnpDjeDOjyQIUDnJ9mbe5DYbYX7jKFEC4w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=LguOxpacswnc5XQrvD7Pm7fJMDILFCrVoQ2Nuj148km21yWxwZs5cqF9owZ6RRqo+x Gcae5mcAMlnwLcHrJeBPdv5yFInk4wQFMtopTPM5kjTax76LEipyj5Lq/nikpOlyRzSD jzY4QvImp3l0g+A5u6/DcvKX3fDFm0llSPkVk= MIME-Version: 1.0 Received: by 10.42.149.138 with SMTP id w10mr10401788icv.100.1306850764311; Tue, 31 May 2011 07:06:04 -0700 (PDT) Received: by 10.231.30.141 with HTTP; Tue, 31 May 2011 07:06:04 -0700 (PDT) In-Reply-To: <36AF85D9-01D5-43B0-9456-A288E740A85B@roshambo.org> References: <36AF85D9-01D5-43B0-9456-A288E740A85B@roshambo.org> Date: Tue, 31 May 2011 16:06:04 +0200 Message-ID: To: Philip Olson , internals@lists.php.net Content-Type: multipart/alternative; boundary=90e6ba2121d994ce0704a492e7a8 Subject: Re: [PHP-DEV] removing some cruft From: landeholm@gmail.com (Hannes Landeholm) --90e6ba2121d994ce0704a492e7a8 Content-Type: text/plain; charset=ISO-8859-1 Yeah, I was wondering why the magical logo thing was implemented like that. Just use the href= "data:image/png;base64,..." scheme instead if you really need a logo there. Combine that with smaller size and heavy jpeg compression and it shouldn't make the HTML /that/ bloated. Hannes If you really need such content in phpinfo() you could simply embed the picture in HTML using the data: scheme. On 31 May 2011 15:57, Philip Olson wrote: > > On May 28, 2011, at 10:42 AM, Daniel Brown wrote: > > > On Sat, May 28, 2011 at 06:05, Kalle Sommer Nielsen > wrote: > >> > >> expose_php = Off? > > > > 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 === 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 > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --90e6ba2121d994ce0704a492e7a8--