0031699: Upgrade Slim Framework to 4.x - MantisBT

View Issue Details

IDProjectCategoryView StatusDate SubmittedLast Update
0031699mantisbtapi restpublic2022年12月01日 08:412026年09月01日 08:25
Reporterdregad Assigned To 
PriorityhighSeveritymajorReproducibilityN/A
Status confirmedResolutionopen 
Target Version2.29.0 
Summary0031699: Upgrade Slim Framework to 4.x
Description

Slim 3.x has reached end-of-life and is only getting security updates. PHP 8.1 compatibility is limited, and the Slim team have clearly stated that they will not accept pull request to fix that.

The latest version of Slim (4.11.0 as of this writing) requires PHP 7.4.

TagsPHP 8.1, PHP 8.2, PHP 8.4

Relationships

related to  0030841 closed dregad   Update Slim Framework to 3.12.4 
related to  0031678 closed dregad   cannot fetch data with rest api after upgrade 
related to  0035216 closed dregad   PHP 8.4 compatibility 
parent of  0032808 closed dregad   Increase minimum PHP requirement to 7.4 
parent of  0027840 closed dregad   Increase minimum PHP requirement to 7.2.5 
related to  0032866 closed dregad   Allow REST API to run on PHP 8.1 without squelching E_DEPRECATED notices 
related to  0035284 closed dregad   Allow REST API to run on PHP 8.4 ignoring E_DEPRECATED notices 
related to  0037288 resolved dregad   Upgrade Slim Framework to 3.13.0 
child of  0032027 closed dregad   PHP 8.2 support 

Activities

dregad

2023年09月02日 07:09

developer   ~0068059

The latest version of Slim (4.11.0 as of this writing) requires PHP 7.4.

Actually, PHP 7.4 is only required as of Slim 4.10.0.

PHP 7.2 support was dropped in Slim 4.9.0, so we could consider upgrading to 4.8.1 with our current requirements.

dregad

2025年01月26日 10:29

developer   ~0069756

It looks like making our old Slim 3.x work under PHP 8.4 is not going to be possible without patching the source, as some of the errors are occurring before the custom handler that I implemented in 0032866 is in place, so they cannot be caught with it.

dregad

2025年01月31日 20:57

developer   ~0069805

I managed to find a workaround to run on PHP 8.4 without upgrading to Slim 4, see 0035284.

dregad

2026年07月04日 19:32

developer   ~0071283

Last edited: 2026年09月01日 08:25

Slim released a new 3.13.0 release in April 2026 with PHP 8.1-8.5 support, so it may be possible to upgrade to that and revert the workaround implemented in 0035284.

EDIT: follow-up in 0037288 (fixed in 2.29.0)

Powered by MantisBT 2.29.0-dev-master-e4ff7ef87
Copyright © 2000 - 2026 MantisBT Team
Contact administrator for assistance
Page execution time: 0.1672 seconds    

AltStyle によって変換されたページ (->オリジナル) /