Bug #2850: Perl-like CGI doesn't work like stated in docs

From: Date: Sun, 28 Nov 1999 12:36:43 +0000
Subject: Bug #2850: Perl-like CGI doesn't work like stated in docs
Groups: php.dev 
Request: Send a blank email to php-dev+get-13216@lists.php.net to get a copy of this message
From: stas@zend.com Operating system: Linux PHP version: 3.0.12 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 (#13216) next »