[php-src] PR #25475: Fix GH-25474: version_compare() numeric parts overflow long on Windows
| From: | lazerg | Date: | Mon, 16 Nov 2026 04:48:46 +0000 |
| Subject: | [php-src] PR #25475: Fix GH-25474: version_compare() numeric parts overflow long on Windows | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-40667@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/25475
Author: lazerg
php_version_compare() parsed numeric parts with strtol() into a
long, which is 32 bits on Windows. Any part above 2147483647 clamped to
LONG_MAX, so two different large build numbers compared as equal. It now uses
ZEND_STRTOL() and zend_long, so the range matches PHP's int on every
64-bit platform.
Fixes #25474