Skip to content

PHP webserver not falling back to index.php when URL has an extension #16194

Closed as not planned
@nicolas-grekas

Description

@nicolas-grekas

Description

Create an empty dir and put Hello in index.php.
run php -S localhost:8080 in that directory

go to http://localhost:8080/foo/bar, see Hello.
go to http://localhost:8080/foo/bar.baz, see a 404 from the builtin webserver instead of the expected Hello.

This must be a recent regression?
PHP 8.4 is not affected, but PHP 8.2.24 and 8.3.12 are (I didn't test earlier versions)

PHP Version

PHP 8.2.24

Operating System

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions