Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45508 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83592 invoked from network); 6 Sep 2009 19:15:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Sep 2009 19:15:45 -0000 Authentication-Results: pb1.pair.com header.from=keisial@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=keisial@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.212 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.220.212 mail-fx0-f212.google.com Received: from [209.85.220.212] ([209.85.220.212:38854] helo=mail-fx0-f212.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 38/C3-61935-06A04AA4 for ; Sun, 06 Sep 2009 15:15:45 -0400 Received: by fxm8 with SMTP id 8so1608741fxm.23 for ; Sun, 06 Sep 2009 12:15:41 -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:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=YgUip23sgMBTbqp3UbFL40YHch5kMmz3wbji0TQXNOc=; b=RHF5oqKT/v8jInOuDMSP+o2x3V0chJt7dPY+rjpuwZboMWGxsYlYYIe9XiQCD0nS6z ed00jW88UvLZmMMO6o7bm7+pMLdl7GNiOkl/6BEMZY9vg7Hir8asZVS03xwc6c3LGJhf D27mqEScSKzA01XQjIh/LDdsirC7zVgAhvkiY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=mykXNwHltS7BNAxvvzGOPoOpVuk2CQHQg9Ng5Qfrz2YW8oxc2sSD2h/teA8wGej2z4 loYXY5PWRypZc9hmpCTIvmVi+utckA2o6KrcZHu6CojT4L4ODxYq9LNcFhlnkT5LfhJP UbXVoYRmyIL2MabtSlWxXv2oFz4o4ssKmH9aM= Received: by 10.204.7.75 with SMTP id c11mr11283528bkc.119.1252264541590; Sun, 06 Sep 2009 12:15:41 -0700 (PDT) Received: from ?192.168.1.25? (144.Red-83-51-56.dynamicIP.rima-tde.net [83.51.56.144]) by mx.google.com with ESMTPS id z15sm5822728fkz.34.2009.09.06.12.15.40 (version=SSLv3 cipher=RC4-MD5); Sun, 06 Sep 2009 12:15:40 -0700 (PDT) Message-ID: <4AA40A5D.4010703@gmail.com> Date: Sun, 06 Sep 2009 21:15:41 +0200 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: 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> <4AA24FDB.90409@sci.fi> <4AA25E16.7040803@sci.fi> <30CAA781-B1EE-44E0-AC7B-47FF3DF48FE1@tabini.ca> <698DE66518E7CA45812BD18E807866CE03415400@us-ex1.zend.net> In-Reply-To: <698DE66518E7CA45812BD18E807866CE03415400@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: > If this is indeed a use-case for CGI then I think it's a valid argument > and we are probably better off supporting it. I did not remember shebang > works for real CGI. > There are still plenty of use-cases for running CGI (as opposed to > FastCGI) in the industry. > Question now is whether this should be done in the scanner or in the > SAPI. I'll check with Dmitry who made this change. > > Andi > Probably in sapi, so it only affects cgi and cli, and doesn't reintroduce bug 46844. OTOH, skipping shebang on included files could be a feature, if someone uses cgi and uses files both as entrypoint and included scripts. A compromise might be skipping shebang line only when it's followed by