mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-28 23:49:44 +08:00
Environmental variables required for PHP cgi.
In few windows machines, the environment variables "ProgramFiles" is required to successfully execute PHP code especially socket functions.
This commit is contained in:
parent
2a0b55b30b
commit
1d9d1111e1
@ -3142,6 +3142,12 @@ static void prepare_cgi_environment(struct mg_connection *conn,
|
||||
if ((s = getenv("SystemDrive")) != NULL) {
|
||||
addenv(blk, "SystemDrive=%s", s);
|
||||
}
|
||||
if ((s = getenv("ProgramFiles")) != NULL) {
|
||||
addenv(blk, "ProgramFiles=%s", s);
|
||||
}
|
||||
if ((s = getenv("ProgramFiles(x86)")) != NULL) {
|
||||
addenv(blk, "ProgramFiles(x86)=%s", s);
|
||||
}
|
||||
#else
|
||||
if ((s = getenv("LD_LIBRARY_PATH")) != NULL)
|
||||
addenv(blk, "LD_LIBRARY_PATH=%s", s);
|
||||
|
Loading…
x
Reference in New Issue
Block a user