Internal webserver can be started multiple times on the same port
Open
@devnexen is already working on this.
Since Dec 26, 2023.
Bug
OS: Windows
SAPI: cli_server
Status: Needs Triage
- Dominant language
- C
- Stars
- 40.4k
- Forks
- 8.1k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 96
Description
Description
The following code:
php.exe -S 127.0.0.1:8080 -t .
Resulted in this output:
[Mon Dec 25 16:36:46 2023] PHP 8.3.0 Development Server (http://127.0.0.1:8080) started
But I expected this output instead:
error if another server is already started on the same port
IDK if this is only a Windows issue, but I would expect php webserver to require listening port exclusively on any OS.
PHP Version
any (tested 7.4 and 8.3)
Operating System
Windows
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.