We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad0d2e4 commit 6cef933Copy full SHA for 6cef933
win32/build/confutils.js
@@ -126,6 +126,17 @@ build_dirs = new Array();
126
extension_include_code = "";
127
extension_module_ptrs = "";
128
129
+(function () {
130
+ var wmiservice = GetObject("winmgmts:{impersonationLevel=impersonate}!\\\\.\\root\\cimv2");
131
+ var oss = wmiservice.ExecQuery("Select * from Win32_OperatingSystem");
132
+ var os = oss.ItemIndex(0);
133
+ AC_DEFINE("PHP_BUILD_SYSTEM", os.Caption + " [" + os.Version + "]", "Windows build system version");
134
+ var build_provider = WshShell.Environment("Process").Item("PHP_BUILD_PROVIDER");
135
+ if (build_provider) {
136
+ AC_DEFINE("PHP_BUILD_PROVIDER", build_provider);
137
+ }
138
+}());
139
+
140
if (!MODE_PHPIZE) {
141
get_version_numbers();
142
}
0 commit comments