Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
I was looking to add to slow logs information about request url. This is useful in case the web server is modifying the url as described here #18536
The
sapi_request_infostructure already foresee arequest_urivariable,but it is going to ends up containing the "SCRIPT FILENAME" after
static void init_request_info(void)is executedphp-src/sapi/fpm/fpm/fpm_main.c
Line 1334 in 4cc5f02
so I added the
path_infovariable to thesapi_request_info, in order to put in it the value of thePATH_INFOparameter setted by the web server.Then in the slow log the
request_method,request_path_infoandrequest_query_stringare addedIn order to work properly the web server should add the
PATH_INFOto the request to fpmie for nginx
Thanks