mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Follow up on bug #75574 for FCGI side
This commit is contained in:
parent
2873316d1d
commit
8b57a5bca0
3 changed files with 83 additions and 0 deletions
|
@ -1027,6 +1027,12 @@ SAPI_API char *sapi_getenv(char *name, size_t name_len)
|
|||
char *value, *tmp = sapi_module.getenv(name, name_len);
|
||||
if (tmp) {
|
||||
value = estrdup(tmp);
|
||||
#ifdef PHP_WIN32
|
||||
if (strlen(sapi_module.name) == sizeof("cgi-fcgi") - 1 && !strcmp(sapi_module.name, "cgi-fcgi")) {
|
||||
/* XXX more modules to go, if needed. */
|
||||
free(tmp);
|
||||
}
|
||||
#endif
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue