Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13220 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 10156 invoked by uid 1010); 7 Oct 2004 18:09:32 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 10079 invoked from network); 7 Oct 2004 18:09:31 -0000 Received: from unknown (HELO mail.zend.com) (80.74.107.235) by pb1.pair.com with SMTP; 7 Oct 2004 18:09:31 -0000 Received: (qmail 31002 invoked from network); 7 Oct 2004 18:09:28 -0000 Received: from localhost (HELO AndiNotebook.zend.com) (127.0.0.1) by localhost with SMTP; 7 Oct 2004 18:09:28 -0000 Message-ID: <5.1.0.14.2.20041007110814.02f7e4a0@localhost> X-Sender: andi@localhost X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 07 Oct 2004 11:09:25 -0700 To: val khokhlov ,internals@lists.php.net In-Reply-To: <776266878.20041007190200@vk.kiev.ua> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] proposal From: andi@zend.com (Andi Gutmans) References: <776266878.20041007190200@vk.kiev.ua> This has already been discussed in the past (I think a couple of years ago) and it was decided not to make these changes. Frankly, I don't quite remember the discussion but it might be a good place for you to start. About the attachment, it didn't come through. Guys, maybe we can calm down this attachment cleaner a bit. It's becoming really annoying. It's only in the past few months where it is overly aggressive. Andi At 07:02 PM 10/7/2004 +0300, val khokhlov wrote: >Hello, > > i have small proposal (maybe, it was already discussed here?) - about >ignoring shell invocation lines at the beginning of source file, kind of >#!/usr/local/bin/php > reason is simple - CGI compliance, so that php scripts could work with >any web-server (both via standard CGI and via SAPI modules) without changes. >also, any included script might contain shell invocation too - it's not >good when such line is displayed to user. > implementation for php4 - in zend_language_scanner.l > open_file_for_scanning() >read the first line and ignore it if it starts with #!; draft patch is >attached >(#if 1/#endif's are to make changes clear). relevant boolean parameter is >"ignore_shell_invocation" (off by default). however, it doesn't work with >php5. > > >-- >Best regards, > val mailto:val@vk.kiev.ua >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php