You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
The text was updated successfully, but these errors were encountered:
Description
We're using
GetVersionEx()
to setEG(windows_version_info)
, and alsoGetVersion()
inphp_get_uname()
(the latter might reuse the former; I'll have a closer look). Both functions are deprecated, and the documentation states:Using the version helper functions in combination with
GetProductInfo()
is indeed an option, but changingEG(windows_version_info)
to no longer hold anOSVERSIONINFOEX
structure would be a BC break, which is exacerbated by the fact that we make the fields available as userland constants:php-src/main/main.stub.php
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.The text was updated successfully, but these errors were encountered: