Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to master #1

Merged
merged 11 commits into from
May 30, 2024
Merged

Conversation

sammyaxe
Copy link
Owner

No description provided.

michaelbragg and others added 11 commits August 8, 2023 15:26
```bash
Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in psalm/stubs/imagick.php on line 11
```

Recreate:
`php -l psalm/stubs/imagick.php`

Expect:
`No syntax errors detected in psalm/stubs/imagick.php`
forgot the apostrophe

Co-authored-by: Tom J Nowell <contact@tomjn.com>
…mp_dir' into improvement/use_wordpress_get_temp_dir

* origin/improvement/use_wordpress_get_temp_dir:
  Update inc/namespace.php
As of PHP 8.0, substr will return empty string rather than false in certain circumstances.

Due to this change, this implementation of readdir in S3-Uploads behaves incorrectly. In particular, this common pattern:
while (($file = readdir($dh)) !== false){
which is used in gravityforms, becomes an infinite loop since the while loop just keeps getting an empty string rather than false.

This can lead to a crazy high AWS S3 list line item on your bill. I recommend merging in this change right away to avoid this situation.
…p_dir

Use get_temp_dir instead of sys_get_temp_dir
fix readdir bug from PHP 8 substr change
@sammyaxe sammyaxe merged commit ba5c2a2 into sammyaxe:update-s3-sdk-to-3.27 May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants