php / php/php-src

Internal webserver can be started multiple times on the same port

Open
#13,025 1 comment 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.