[php-src] PR #24778: Fix ZEND_LONG_UINT_OVFL() accepting negative values on 32-bit platforms

From: Date: Tue, 27 Oct 2026 10:21:27 +0000
Subject: [php-src] PR #24778: Fix ZEND_LONG_UINT_OVFL() accepting negative values on 32-bit platforms
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-39959@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/24778 Author: marc-mabe Where zend_long is not wider than an int, ZEND_LONG_UINT_OVFL() was defined as 0, so a negative value passed the check there, while it is rejected where zend_long is wider. Keep checking the lower bound on these platforms too. This affects mbstring.regex_stack_limit, mbstring.regex_retry_limit and the codepage of sapi_windows_cp_set() and sapi_windows_cp_conv(). This is split from #23688

« previous php.git-pulls (#39959) next »