php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26039 -b listed in the available options under win32
Submitted: 2003-10-30 08:55 UTC Modified: 2003-10-30 20:27 UTC
From: ken dot davis at experioronline dot com Assigned:
Status: Closed Package: CGI/CLI related
PHP Version: 4.3.4RC3 OS: windows 2000
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: ken dot davis at experioronline dot com
New email:
PHP Version: OS:

 

 [2003-10-30 08:55 UTC] ken dot davis at experioronline dot com
Description:
------------
using the win32 binary

php -b localhost:8080 

returns:

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

along with usage information which includes:

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

php -v returns:
PHP 4.3.4RC3 (cgi-fcgi) (built: Oct 29 2003 14:56:30)

looking at previous bugs and news.txt it seems this should have been fixed.




Reproduce code:
---------------
d:\php\php-4.3.4RC3-Win32\php -b localhost:8080 

Expected result:
----------------
php running in fastcgi server mode on port 8080

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



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-30 13:57 UTC] sniper@php.net
doing 'php -h' would have shown that such option really does not exist. (It doesn't exist under win32)

 [2003-10-30 15:06 UTC] ken dot davis at experioronline dot com
I did php -h and it returned:

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>.


This is the same as the usage info returned after the error message.
 [2003-10-30 20:27 UTC] sniper@php.net
Ah, I see. Fixed in CVS now. (the option is not shown anymore)

 [2004-03-06 17:49 UTC] verdy_p at wanadoo dot fr
Still not fixed in the last stable version:
PHP 4.3.4 (cgi-fcgi) (built: Nov  2 2003 23:47:22)
-b is said to be supported, and the release notes say that FastCGI has been fixed to work on Win32, but it does not!
Now 4 months later, it is still not fixed...
When will be the next stable correction? I mean even before PHP5 gets released... For now people still need to use a "stable" version but they cannot use it on Windows without fixing the bug in optstring, i.e. by compiling it.
The Release notes are still wrong as people think it works in PHP 4.3.4 when it does not.
Which precompiled version for Windows as this bug corrected?
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Nov 30 11:01:22 2020 UTC