Description
Description
We're using GetVersionEx()
to set EG(windows_version_info)
, and also GetVersion()
in php_get_uname()
(the latter might reuse the former; I'll have a closer look). Both functions are deprecated, and the documentation states:
GetVersionExA may be altered or unavailable for releases after Windows 8.1. Instead, use the Version Helper functions.
Using the version helper functions in combination with GetProductInfo()
is indeed an option, but changing EG(windows_version_info)
to no longer hold an OSVERSIONINFOEX
structure would be a BC break, which is exacerbated by the fact that we make the fields available as userland constants:
Lines 193 to 232 in 10ccb6b
Either we find a way to populate the (relevant) fields of OSVERSIONINFOEX
without calling any deprecated functions, or we may consider to deprecate some of the userland constants. Maybe we should do both.