Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45496 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85628 invoked from network); 5 Sep 2009 12:02:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Sep 2009 12:02:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=keisial@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=keisial@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.226 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: keisial@gmail.com X-Host-Fingerprint: 209.85.218.226 mail-bw0-f226.google.com Received: from [209.85.218.226] ([209.85.218.226:51646] helo=mail-bw0-f226.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 91/DE-08099-F5352AA4 for ; Sat, 05 Sep 2009 08:02:39 -0400 Received: by bwz26 with SMTP id 26so1155916bwz.23 for ; Sat, 05 Sep 2009 05:02:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=m+Szl/X6OoIm5nF026yOFipLF5RoeKXLWHDMxLePbAw=; b=IGIIBsr4ZddzFwTD47VZdcoCPLo2H63M8WlsHFUD+adx23szV1tLbP5WK9Ics4vdUU rrY0SFsuuRJEGHPij1W65DY5xyamb6tG7WjnEZpD1QmSeR4Ge19LHE8xgyM5N3vQjYho 3ngaoEvA7yf0u025UwF2XxOUuji8jWzor2sjM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=SI9iZ1z9QtC70uG27ztKRcLrq9vTsxFnPDtINxPeUtcuX5KEsyVecYWtPU8qtF7bvv EAMvuHhSh8rpqaVitZyleBvHRXSfSnXvjcgpVRGKNQ7+oaG7OmSlFkXRra6E440MSqZu Pj+dy42whEeT0qWiXkJDvYkvqbG7HrYDVVxZk= Received: by 10.204.151.209 with SMTP id d17mr10061649bkw.120.1252152156269; Sat, 05 Sep 2009 05:02:36 -0700 (PDT) Received: from ?192.168.1.25? (195.Red-88-21-128.staticIP.rima-tde.net [88.21.128.195]) by mx.google.com with ESMTPS id 19sm3563951fkr.55.2009.09.05.05.02.33 (version=SSLv3 cipher=RC4-MD5); Sat, 05 Sep 2009 05:02:35 -0700 (PDT) Message-ID: <4AA2535B.4070405@gmail.com> Date: Sat, 05 Sep 2009 14:02:35 +0200 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Andi Gutmans CC: internals@lists.php.net References: <20090904081640.GA28685@joeysmith.com> <753B9AED-C850-4EBA-A828-93A2542F81A2@macvicar.net> <20090904083457.GC28685@joeysmith.com> <698DE66518E7CA45812BD18E807866CE034153BA@us-ex1.zend.net> In-Reply-To: <698DE66518E7CA45812BD18E807866CE034153BA@us-ex1.zend.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] shebang skipping in 5.3.0 From: keisial@gmail.com (Keisial) Andi Gutmans wrote: > Shebang is for command line scripts (php-cli). It does not make sense to > support it for Web server scripts. It just adds unnecessary > code/complexity to that code base. Removing the support from php-cgi was > really a remnant of the old days when cli and cgi were the same SAPI. > I think we are better off this way. > > Andi > Why doesn't is make sense? It is a legitimate usage, and if novody used it, it wouldn't have noticed. > > Case 4: PHP parser outside of web tree > > A very secure option is to put the PHP parser binary somewhere outside > of the web tree of files. In /usr/local/bin, for example. The only > real downside to this option is that you will now have to put a line > similar to: > > #!/usr/local/bin/php > > > as the first line of any file containing PHP tags. You will also need > to make the file executable. That is, treat it exactly as you would > treat any other CGI script written in Perl or sh or any other common > scripting language which uses the /#!/ shell-escape mechanism for > launching itself. > http://php.net/manual/en/security.cgi-bin.shell.php