slim 4 is no option because there are about 5 REST API’s which are running with slim 3 for this company, so they won’t change to a different system.
I haven’t had this problem with the existing 5 API’s. (Biggest one hast about 280 routes.)
The only difference here is: I’m using current Version of Slim and installed all with composer and my project with GIT. The other ones was more like copy & paste sources, and than rewrite the routes and functions.
I’ve found the reason!
The regex for the placeholders doesn’t work like normal regex.
Following route caused the problems:
$app->post(’/buckets/{bucket_name:[a-Z0-9]+}’,
a-Z seems to break the method were this regex is used. Switched to
$app->post(’/buckets/{bucket_name:[a-zA-Z0-9]+}’,
and everything is fine now.