View Issue Details

IDProjectCategoryView StatusLast Update
0036540mantisbtbugtrackerpublic2025-10-26 12:36
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityN/A
Status assignedResolutionopen 
Target Version2.27.2 
Summary0036540: Introduce a maximum PHP version
Description

Currently, we only define a minimum PHP version (PHP_MIN_VERSION constant) and enforce it in core.php so MantisBT does not run if the server runs a PHP version lower than supported.

It would be useful to also be able to set a maximum PHP version, ideally with 2 "levels":

  • maximum supported, to indicate the most recent version that MantisBT has been tested with, any higher PHP version may work but there could be compatibility issues. This should be detected via an Admin Check.
  • strict maximum, defined when there are known compatibility issues with a PHP version, that have not yet or cannot be fixed in the current release. This should be enforced in core.php as we do with PHP_MIN_VERSION.

With that, we would avoid reports such as 0036525.

Additional Information

I'm targeting 2.27.2 because we have a known compatibility issue with PHP 8.4 in that branch that can't be fixed until 2.28.0.

TagsNo tags attached.

Relationships

related to 0036525 resolveddregad upgrade from 2.26.4 failes 
related to 0035216 assigneddregad PHP 8.4 compatibility