View Issue Details

IDProjectCategoryView StatusLast Update
0037024mantisbtadministrationpublic2026-04-17 06:42
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Target Version2.28.2Fixed in Version2.28.2 
Summary0037024: Incorrect PHP Supported version Admin Check
Description

When PHP_SUPPORTED_VERSION is defined as X.Y (i.e. does not include a patch number, which is the normal use case), and PHP_VERSION is on the minor defined (e.g. 8.5.4 for supported 8.5), the version check incorrectly reports a warning, because 8.5.4 > 8.5.

All 8.5.x versions should pass the check when PHP_SUPPORTED_VERSION = 8.5.

TagsNo tags attached.

Relationships

related to 0036540 closeddregad Introduce a maximum PHP version 

Activities

dregad

dregad

2026-04-17 06:42

developer   ~0071020

I referenced the wrong issue in the commit message (0036540 instead of 0037024) - I manually added it to the changes.

Related Changesets

MantisBT: master-2.28 872f853e

2026-04-17 06:34

dregad


Details Diff
Fix PHP supported version admin check

When PHP_SUPPORTED_VERSION is defined as X.Y (no patch version), which
is the normal use case, and PHP_VERSION is on the minor defined (e.g.
8.5.4 for supported 8.5), the version check incorrectly reports a
warning, because 8.5.4 > 8.5.

Fixed the check by appending `.999` to the supported version, cover the
case when PHP_SUPPORTED_VERSION includes a patch number, and adjust the
information message.

Fixes 0036540
Affected Issues
0036540, 0037024
mod - admin/check/check_php_inc.php Diff File