You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
In PHP 8.3 and earlier, if the URL indicates a file (it has an extension) then the server assumes the request was for a file and so would return 404 when it couldn't be found. Developers are expected to use a router script if something more complicated is needed, such as URL rewriting.
Description
Create an empty dir and put
Hello
inindex.php
.run
php -S localhost:8080
in that directorygo to
http://localhost:8080/foo/bar
, seeHello
.go to
http://localhost:8080/foo/bar.baz
, see a 404 from the builtin webserver instead of the expectedHello
.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
The text was updated successfully, but these errors were encountered: