proposal

From: Date: Thu, 07 Oct 2004 16:02:00 +0000
Subject: proposal
Groups: php.internals 
Request: Send a blank email to internals+get-13219@lists.php.net to get a copy of this message
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

« previous php.internals (#13219) next »