View Issue Details

IDProjectCategoryView StatusLast Update
0031699mantisbtapi restpublic2025-01-31 20:57
Reporterdregad Assigned To 
PriorityhighSeveritymajorReproducibilityN/A
Status confirmedResolutionopen 
Target Version2.28.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 closeddregad Update Slim Framework to 3.12.4 
related to 0031678 closeddregad cannot fetch data with rest api after upgrade 
parent of 0032808 closeddregad Increase minimum PHP requirement to 7.4 
parent of 0027840 closeddregad Increase minimum PHP requirement to 7.2.5 
related to 0032866 closeddregad Allow REST API to run on PHP 8.1 without squelching E_DEPRECATED notices 
related to 0035284 resolveddregad Allow REST API to run on PHP 8.4 ignoring E_DEPRECATED notices 
child of 0032027 closeddregad PHP 8.2 support 
child of 0035216 assigneddregad PHP 8.4 compatibility 

Activities

dregad

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

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

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.