#37352 [Opn-Bgs]: cli do not parse any arguments the first line

2006-05-07 Thread helly
 ID:   37352
 Updated by:   [EMAIL PROTECTED]
 Reported By:  eddi at ai000 dot de
-Status:   Open
+Status:   Bogus
 Bug Type: CGI related
-Operating System: all
+Operating System: *
-PHP Version:  5.1.4
+PHP Version:  *
 New Comment:

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 systemonly one argument is supported in hash
bang lines


Previous Comments:


[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=37352edit=1


#37352 [Opn-Bgs]: cli do not parse any arguments the first line

2006-05-07 Thread edink
 ID:   37352
 Updated by:   [EMAIL PROTECTED]
 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] [EMAIL PROTECTED]

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 systemonly 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=37352edit=1