perf: put all $_SERVER vars into one function call. (#1303)

* Puts everything into one function call.

* Clang-format off.

* Cleans up.

* Changes function name.

* Removes unnecessary check.

* Passes hash table directly.

* Also tests that the original request path is passed.

* Puts vars into a struct.

* clang-format

---------

Co-authored-by: Alliballibaba <alliballibaba@gmail.com>
This commit is contained in:
Alexander Stecher
2025-01-08 08:23:23 +01:00
committed by GitHub
parent ec8eea0c7d
commit 2b7b3d1e4b
8 changed files with 196 additions and 122 deletions

View File

@@ -29,6 +29,6 @@ PATH_TRANSLATED:{documentRoot}/path
QUERY_STRING:specialChars=%3E\x00%00</>
REMOTE_USER:user
REQUEST_METHOD:POST
REQUEST_URI:/server-all-vars-ordered.php/path?specialChars=%3E\x00%00</>
REQUEST_URI:/original-path?specialChars=%3E\x00%00</>
HTTP_X_EMPTY_HEADER:
</pre>