php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #73902 CLI usage instructions do not mention server router
Submitted: 2017-01-10 02:56 UTC Modified: 2017-01-10 06:21 UTC
From: wallfur+php at gmail dot com Assigned: krakjoe (profile)
Status: Closed Package: Built-in web server
PHP Version: master-Git-2017-01-10 (Git) OS: n.a.
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: wallfur+php at gmail dot com
New email:
PHP Version: OS:

 

 [2017-01-10 02:56 UTC] wallfur+php at gmail dot com
Description:
------------
Look at the help from the PHP CLI from a shell and you can see the built-in server line does not mention the optional <router> argument, and does not enclose the <docroot> in <> as other arguments are.

Test script:
---------------
php -h

Expected result:
----------------
See this in the usage:

   php [options] -S <addr>:<port> [<router>] [-t <docroot>]

Actual result:
--------------
See this:

   php [options] -S <addr>:<port> [-t docroot]

Patches

cli-server-usage (last revision 2017-01-10 02:57 UTC by wallfur+php at gmail dot com)

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-10 06:21 UTC] krakjoe@php.net
Automatic comment on behalf of krakjoe
Revision: http://git.php.net/?p=php-src.git;a=commit;h=125ee6a68e40d539cac5eb97def04d1586ce0e5d
Log: Fixed #73902 mention router support in usage output for php-cli
 [2017-01-10 06:21 UTC] krakjoe@php.net
-Status: Open +Status: Closed
 [2017-01-10 06:21 UTC] krakjoe@php.net
-Assigned To: +Assigned To: krakjoe
 [2017-01-10 06:22 UTC] krakjoe@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 15:01:35 2025 UTC