diff --git a/UPGRADING b/UPGRADING index 94e080b381a..685dfec30c4 100644 --- a/UPGRADING +++ b/UPGRADING @@ -102,6 +102,10 @@ PHP 8.5 UPGRADE NOTES 12. Windows Support ======================================== +* The configuration variables PHP_VERSION, PHP_MINOR_VERSION, and + PHP_RELEASE_VERSION are now always numbers. Previously, they have been + strings for buildconf builds. + ======================================== 13. Other Changes ======================================== diff --git a/win32/build/confutils.js b/win32/build/confutils.js index 438956cbb60..479ce06ad50 100644 --- a/win32/build/confutils.js +++ b/win32/build/confutils.js @@ -108,9 +108,9 @@ function get_version_numbers() var regex = /AC_INIT.+(\d+)\.(\d+)\.(\d+)([^\,^\]]*).+/g; if (cin.match(new RegExp(regex))) { - PHP_VERSION = RegExp.$1; - PHP_MINOR_VERSION = RegExp.$2; - PHP_RELEASE_VERSION = RegExp.$3; + PHP_VERSION = +RegExp.$1; + PHP_MINOR_VERSION = +RegExp.$2; + PHP_RELEASE_VERSION = +RegExp.$3; PHP_EXTRA_VERSION = RegExp.$4; }