Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13219 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58257 invoked by uid 1010); 7 Oct 2004 16:02:07 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 57905 invoked from network); 7 Oct 2004 16:02:03 -0000 Received: from unknown (HELO it-c.com.ua) (213.186.198.74) by pb1.pair.com with SMTP; 7 Oct 2004 16:02:03 -0000 Received: by it-c.com.ua (Postfix, from userid 90) id 2D6454D4D; Thu, 7 Oct 2004 18:46:30 +0300 (EEST) Received: from [192.168.1.7] (250-108.net.g.com.ua [193.111.250.108]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by it-c.com.ua (Postfix) with ESMTP id 2138E4CF6 for ; Thu, 7 Oct 2004 18:46:28 +0300 (EEST) Date: Thu, 7 Oct 2004 19:02:00 +0300 X-Priority: 3 (Normal) Message-ID: <776266878.20041007190200@vk.kiev.ua> To: internals@lists.php.net MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----------261BC56100D6951" Subject: [PHP-DEV] proposal From: val@vk.kiev.ua (val khokhlov) ------------261BC56100D6951 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 ------------261BC56100D6951--