Skip to content

Dev Server command argument order issue undocumented #4587

Open
@upstageleft

Description

@upstageleft

From manual page: https://php.net/features.commandline.webserver


When invoking the command line development server, if using a routing script, the script file or path MUST be specified AFTER the -t argument specifying the document root path, if both are being used. Reversing the order of these arguments causes failure to serve requested resources unless explicitly included, read, or fileread by the script.

I could not find anything on https://php.net specifying this or indicating any issue.

Environment:
MacBook Air 2025 - M4
PHP v8.4.4
MacOS 15.4 (24E248) Sequoia
Firefox 136.0.4
Chrome 135.0.7049.42 (Official Build) (arm64)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions