doc-en icon indicating copy to clipboard operation
doc-en copied to clipboard

Dev Server command argument order issue undocumented

Open upstageleft opened this issue 9 months ago • 1 comments

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)

upstageleft avatar Apr 07 '25 21:04 upstageleft