[php-src] PR #12992: Support index.php fallback for files in built-in server
| From: | iluuu1994 | Date: | Thu, 21 Dec 2023 14:49:57 +0000 |
| Subject: | [php-src] PR #12992: Support index.php fallback for files in built-in server | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-24560@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/12992
Author: iluuu1994
If no router script is used, the built-in webserver will now look for a fallback index file
recursively in all cases, including URLs with a period.
Furthermore, if a router script returns false, we will no longer perform a recursive fallback.
Previously, recursive fallback was performed when the URL contained no period. The rationale for
this is that it avoids serving the root index.php file when the router has indicated that the file
is a static file.
The existing behavior essentially assumes that virtual routes don't contain periods, and that
real files do. Both of those assumptions are incorrect.
Fixes GH-12604