PHP 4.0 Bug #2851: Perl-like CGI doesn't work like stated in docs

From: Date: Sun, 28 Nov 1999 12:41:48 +0000
Subject: PHP 4.0 Bug #2851: Perl-like CGI doesn't work like stated in docs
Groups: php.dev 
Request: Send a blank email to php-dev+get-13218@lists.php.net to get a copy of this message
From: stas@zend.com Operating system: Linux PHP version: 4.0 Beta 3 PHP Bug Type: Feature/Change Request Bug description: Perl-like CGI doesn't work like stated in docs In security.html, case 4, it says that it's possible to run PHP script just like Perl script, by putting #!/path/to/php on the start of the scriptand making script executable. Well, it's not the case - in cgi_main.c it explicitly checks if it is run as CGI and reqires PATH_TRANSLATED. Option --enable-discard-path doesn't seem to help, and, in fact, I do not see from source it does anything at all. So when I do what is stated in the manual, I get "No input file specified." It also ignores command-line arguments, given with #! - which is not documented anywhere and doesn't match command-line behaviour. Is it possible to make command-line and CGI via #! to behave in the same consistent way?

« previous php.dev (#13218) next »