[php-src] PR #22615: sapi/cli: support HTTP QUERY method in built-in server
| From: | Afcyy | Date: | Mon, 06 Jul 2026 11:37:02 +0000 |
| Subject: | [php-src] PR #22615: sapi/cli: support HTTP QUERY method in built-in server | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36862@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22615
Author: Afcyy
PHP’s built-in development server currently rejects requests using the
QUERY
HTTP method with a 501 Not Implemented response before they reach the router
script.
QUERY is now standardized by RFC 10008. This adds it to the CLI server HTTP
parser so requests are accepted and passed through like other recognized HTTP
methods.
A regression test is included to verify that QUERY reaches the router and is
exposed through $_SERVER['REQUEST_METHOD'].