php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21303 FastCGI Support
Submitted: 2002-12-30 20:48 UTC Modified: 2002-12-31 08:06 UTC
From: fserb at terra dot com dot br Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.3.0 OS: WinXP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: fserb at terra dot com dot br
New email:
PHP Version: OS:

 

 [2002-12-30 20:48 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-31 08:06 UTC] sniper@php.net
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.
 [2003-05-16 14:28 UTC] 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 ...)
 [2004-03-06 17:32 UTC] 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!
 [2004-03-06 17:33 UTC] 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!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 19:01:32 2024 UTC