-
Notifications
You must be signed in to change notification settings - Fork 11.7k
Description
- Laravel Version: 9.40.1
- PHP Version: 8.1.5
- Database Driver & Version: Mysql 8.0.28
Description:
We are currently using a filesystem that is hosted at DigitalOcean (space), we are using the AWS adapter requiring a few packages, one of the packages: aws/aws-sdk-php
By upgrading from 3.242.1 to 3.243.0 we suddenly got issues in our system (a nasty Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '256' frames)

We tested by pinning in our composer.json
"aws/aws-sdk-php": "3.242.1", -> OK
"aws/aws-sdk-php": "3.243.0", -> NOT OK
After investigation, we identified this bug reported on that repo:
aws/aws-sdk-php#2563
We tried to apply the patch proposed on src/Illuminate/Filesystem/FilesystemManager.php (before $client = new S3Client($s3Config)):
$s3Config['endpoint_provider'] = PartitionEndpointProvider::defaultProvider();
and that fixes the issue...
Seems like it's linked to a file that starts with / (example : /private/image.gif )