View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0036540 | mantisbt | bugtracker | public | 2025-10-26 11:47 | 2025-11-15 10:21 |
| Reporter | dregad | Assigned To | dregad | ||
| Priority | normal | Severity | minor | Reproducibility | N/A |
| Status | closed | Resolution | fixed | ||
| Target Version | 2.27.2 | Fixed in Version | 2.27.2 | ||
| Summary | 0036540: 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":
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. | ||||
| Tags | No tags attached. | ||||
|
MantisBT: master-2.27 a3226bfb 2025-10-26 06:58 Details Diff |
Add Admin check for max PHP version Fixes 0036540 |
Affected Issues 0036540 |
|
| mod - admin/check/check_php_inc.php | Diff File | ||
|
MantisBT: master-2.27 4bd78321 2025-10-26 06:59 Details Diff |
Set PHP_MAX_VERSION to 8.4.0 Fixes 0036540 |
Affected Issues 0036540 |
|
| mod - core/constant_inc.php | Diff File | ||
|
MantisBT: master-2.27 1401d2dc 2025-10-26 12:17 Details Diff |
Differentiate "max" and "max supported" PHP versions Introduce a new PHP_SUPPORTED_VERSION constant and add a comment block to explain usage of the 3 PHP-version-related constants. Enforce PHP_MAX_VERSION in core.php, like we do for PHP_MIN_VERSION. Adapt the Admin Check to use PHP_SUPPORTED_VERSION; check is downgraded to warning since the hard fail is already taken care of. PHP_SUPPORTED_VERSION should be defined with 2 numbers (X.Y) to cover all versions including pre-releases. Fixes 0036540 |
Affected Issues 0036540 |
|
| mod - admin/check/check_php_inc.php | Diff File | ||
| mod - core.php | Diff File | ||
| mod - core/constant_inc.php | Diff File | ||
|
MantisBT: master-2.27 5f76868b 2025-10-26 19:43 Details Diff |
Add missing project_id param in report URL Fixes 0036540 |
Affected Issues 0036540 |
|
| mod - admin/check/check_php_inc.php | Diff File | ||
|
MantisBT: master-2.27 a91753e8 2025-10-26 20:02 Details Diff |
Add MantisBT version to error message Issue 0036540 |
Affected Issues 0036540 |
|
| mod - core.php | Diff File | ||