|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patch add-balancer-support for FPM related Bug #71379Patch version 2016-01-15 03:59 UTC Return to Bug #71379 | Download this patchThis patch is obsolete Obsoleted by patches: Patch Revisions:Developer: matt@haught.org
diff --git a/sapi/fpm/fpm/fpm_main.c b/sapi/fpm/fpm/fpm_main.c
index b9c7e0b..c891db2 100644
--- a/sapi/fpm/fpm/fpm_main.c
+++ b/sapi/fpm/fpm/fpm_main.c
@@ -1092,11 +1092,16 @@ static void init_request_info(void)
memmove(env_script_filename, p, strlen(p) + 1);
apache_was_here = 1;
}
+ }
+
+ if (env_server_software &&
+ strncmp(env_server_software, "Apache", sizeof("Apache") - 1) == 0) {
/* ignore query string if sent by Apache (RewriteRule) */
- p = strchr(env_script_filename, '?');
+ char *p = strchr(env_script_filename, '?');
if (p) {
*p =0;
}
+ apache_was_here = 1;
}
if (CGIG(fix_pathinfo)) {
|
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 15 19:00:01 2025 UTC |