#37352 [Opn->Bgs]: cli do not parse any arguments the first line
| From: | edink@php.net | Date: | Sun, 07 May 2006 21:08:41 +0000 |
| Subject: | #37352 [Opn->Bgs]: cli do not parse any arguments the first line | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-96781@lists.php.net to get a copy of this message | ||
ID: 37352
Updated by: edink@php.net
Reported By: eddi at ai000 dot de
-Status: Open
+Status: Bogus
Bug Type: CGI related
Operating System: *
PHP Version: *
New Comment:
Parsing of the shebang line is a kernel task. Linux supports one
argument, FreeBSD parses them the way you would like. This is not a bug
in PHP.
Previous Comments:
------------------------------------------------------------------------
[2006-05-07 19:17:59] eddi at ai000 dot de
Please have look in the php_cli.c. The function cli_seek_file_begin
reads already the first line. Why it seems to you PHP could not support
arguments form the first line like Perl?
------------------------------------------------------------------------
[2006-05-07 19:07:36] helly@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
RTFM of your shell system....only one argument is supported in hash
bang lines
------------------------------------------------------------------------
[2006-05-07 19:00:56] eddi at ai000 dot de
Description:
------------
1.) It is not really a bug because it is not provided in php_cli.c. It
is a feature request. PHP should suppord arguments in the first line of
a script.
#!/opt/php/php -c /other/config.ini -z /zend/modul.so
Thanks.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=37352&edit=1