ID:               21303
 Comment by:       verdy_p at wanadoo dot fr
 Reported By:      fserb at terra dot com dot br
 Status:           Bogus
 Bug Type:         *General Issues
 Operating System: WinXP
 PHP Version:      4.3.0
 New Comment:

Still not fixed in PHP 4.3.4 !

At least in the latest stable version for Win32 (both e installer
version, and the manually installed ZIP version)



C:\> php\php -b 6000

Error in argument 1, char 2: option not found b

Usage: php [-q] [-h] [-s] [-v] [-i] [-f <file>]

       php <file> [args...]

  -a               Run interactively

  -b <address:port>|<port> Bind Path for external FASTCGI Server mode

  -C               Do not chdir to the script's directory

  -c <path>|<file> Look for php.ini file in this directory

  -n               No php.ini file will be used

  -d foo[=bar]     Define INI entry foo with value 'bar'

  -e               Generate extended information for debugger/profiler

  -f <file>        Parse <file>.  Implies `-q'

  -h               This help

  -i               PHP information

  -l               Syntax check only (lint)

  -m               Show compiled in modules

  -q               Quiet-mode.  Suppress HTTP Header output.

  -s               Display colour syntax highlighted source.

  -v               Version number

  -w               Display source with stripped comments and
whitespace.

  -z <file>        Load Zend extension <file>.



C:\> php\php -b 127.0.0.1:6000

Error in argument 1, char 2: option not found b

Usage: php [-q] [-h] [-s] [-v] [-i] [-f <file>]

       php <file> [args...]

  -a               Run interactively

  -b <address:port>|<port> Bind Path for external FASTCGI Server mode

  -C               Do not chdir to the script's directory

  -c <path>|<file> Look for php.ini file in this directory

  -n               No php.ini file will be used

  -d foo[=bar]     Define INI entry foo with value 'bar'

  -e               Generate extended information for debugger/profiler

  -f <file>        Parse <file>.  Implies `-q'

  -h               This help

  -i               PHP information

  -l               Syntax check only (lint)

  -m               Show compiled in modules

  -q               Quiet-mode.  Suppress HTTP Header output.

  -s               Display colour syntax highlighted source.

  -v               Version number

  -w               Display source with stripped comments and
whitespace.

  -z <file>        Load Zend extension <file>.



C:\> php\php -v

PHP 4.3.4 (cgi-fcgi) (built: Nov  2 2003 23:47:22)

Copyright (c) 1997-2003 The PHP Group

Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies



Please fix it! FastCGI cannot work without it!


Previous Comments:
------------------------------------------------------------------------

[2004-03-06 17:32:44] verdy_p at wanadoo dot fr

Still not fixed in PHP 4.3.4 !

At least in the latest stable version for Win32 (both e installer
version, and the manually installed ZIP version)



C:\> php\php -b 6000

Error in argument 1, char 2: option not found b

Usage: php [-q] [-h] [-s] [-v] [-i] [-f <file>]

       php <file> [args...]

  -a               Run interactively

  -b <address:port>|<port> Bind Path for external FASTCGI Server mode

  -C               Do not chdir to the script's directory

  -c <path>|<file> Look for php.ini file in this directory

  -n               No php.ini file will be used

  -d foo[=bar]     Define INI entry foo with value 'bar'

  -e               Generate extended information for debugger/profiler

  -f <file>        Parse <file>.  Implies `-q'

  -h               This help

  -i               PHP information

  -l               Syntax check only (lint)

  -m               Show compiled in modules

  -q               Quiet-mode.  Suppress HTTP Header output.

  -s               Display colour syntax highlighted source.

  -v               Version number

  -w               Display source with stripped comments and
whitespace.

  -z <file>        Load Zend extension <file>.



C:\> php\php -b 127.0.0.1:6000

Error in argument 1, char 2: option not found b

Usage: php [-q] [-h] [-s] [-v] [-i] [-f <file>]

       php <file> [args...]

  -a               Run interactively

  -b <address:port>|<port> Bind Path for external FASTCGI Server mode

  -C               Do not chdir to the script's directory

  -c <path>|<file> Look for php.ini file in this directory

  -n               No php.ini file will be used

  -d foo[=bar]     Define INI entry foo with value 'bar'

  -e               Generate extended information for debugger/profiler

  -f <file>        Parse <file>.  Implies `-q'

  -h               This help

  -i               PHP information

  -l               Syntax check only (lint)

  -m               Show compiled in modules

  -q               Quiet-mode.  Suppress HTTP Header output.

  -s               Display colour syntax highlighted source.

  -v               Version number

  -w               Display source with stripped comments and
whitespace.

  -z <file>        Load Zend extension <file>.



C:\> php\php -v

PHP 4.3.4 (cgi-fcgi) (built: Nov  2 2003 23:47:22)

Copyright (c) 1997-2003 The PHP Group

Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies



Please fix it! FastCGI cannot work without it!

------------------------------------------------------------------------

[2003-05-16 14:28:13] krip at openisis dot org

OF COURSE it does imply a bug in php itself,

if it doesn't recognize it's own options!

The bug is having cgi_main lacking a b in OPTSTRING.

This is apparently fixed in 4.3.2

(but still not working for some other reason ...)

------------------------------------------------------------------------

[2002-12-31 08:06:06] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

------------------------------------------------------------------------

[2002-12-30 20:48:55] fserb at terra dot com dot br

Hi,



what has happened with FastCGI support on the 4.3 version? On changelog
I saw that SAPI/FastCGI was discontinued. But when I do phpinfo() it
reports "Server API : CGI/FastCGI"

and when I go with "php -v" the answer is:

PHP 4.3.0 (cgi-fcgi), Copyright (c) 1997-2002 The PHP Group

Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies



and when I go with "php -h" there's an option : 

  -b <address:port>|<port> Bind Path for external FASTCGI Server mode



But when I do "php -b localhost:5000" it says there's no "b" command.



I don't know if this is a real bug or something else. But what's up
with FastCGI? Was it really discontinued? 



If so, where can I find good alternatives to FastCGI and the reasons
that lead to this?



thankz

Fernando

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=21303&edit=1

Reply via email to