Skip to content

Missing CGI environment variables: WINDIR and others #136

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
GoogleCodeExporter opened this issue Aug 28, 2015 · 7 comments
Closed

Missing CGI environment variables: WINDIR and others #136

GoogleCodeExporter opened this issue Aug 28, 2015 · 7 comments
Labels

Comments

@GoogleCodeExporter
Copy link

May the missing WINDIR env variable be the cause of sql server extension 
failing to load sqlserv32.dll during connect? (see error message in Issue 135).

Expose these environment variables:

 _ENV["ALLUSERSPROFILE"] => C:\ProgramData
 _ENV["APPDATA"] => C:\Users\ctomczak\AppData\Roaming
 _ENV["COMPUTERNAME"] => CTOMCZAK-PC
 _ENV["LOCALAPPDATA"] => C:\Users\ctomczak\AppData\Local
 _ENV["OS"] => Windows_NT
 _ENV["PROCESSOR_ARCHITECTURE"] => x86
 _ENV["PROCESSOR_ARCHITEW6432"] => AMD64
 _ENV["PROCESSOR_IDENTIFIER"] => Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
 _ENV["ProgramData"] => C:\ProgramData
 _ENV["ProgramW6432"] => C:\Program Files
 _ENV["PUBLIC"] => C:\Users\Public
 _ENV["USERNAME"] => ctomczak
 _ENV["USERPROFILE"] => C:\Users\ctomczak

 _ENV["windir"] => C:\Windows (php.exe -i shows this env var in lowercase. Why not uppercase WINDIR, does it make difference?)

 _ENV["ComSpec"] => C:\Windows\system32\cmd.exe (note that there is "COMSPEC" exposed by Mongoose but it is uppercase, does it make difference?)

 _ENV["SystemRoot"] => C:\Windows (note that Mongoose exposes "SYSTEMROOT", does uppercase make difference?)

Is there an easy way to obtain all environment variables exposed by OS using 
WINAPI? See `GetEnvironmentStrings` on MSDN: 
http://msdn.microsoft.com/en-us/library/windows/desktop/ms683187(v=vs.85).aspx

Original issue reported on code.google.com by [email protected] on 21 Oct 2014 at 9:18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant