Skip to content

Conversation

@schlessera
Copy link
Member

@schlessera schlessera commented Sep 2, 2022

Try to detect a read error while discovering EXIF properties in an image file.

On older PHP versions, the detection just fails returning anything for $metadata. However, with newer PHP versions, it returns an array with only a 'filesize' key.

This PR adapts the logic to account for this and to fix a test failure on bad JPGs that was introduced by that new behavior.
Testing · wp-cli_automated-tests@9e9164f - Google Chrome 2022-09-02 at 11 29 09 AM

@schlessera schlessera requested a review from a team as a code owner September 2, 2022 16:30
@schlessera schlessera added this to the 2.0.15 milestone Sep 2, 2022
@schlessera schlessera merged commit 7e35526 into master Sep 2, 2022
@schlessera schlessera deleted the fix/read-error-in-exif-discovery branch September 2, 2022 17:17
danielbachhuber pushed a commit that referenced this pull request Nov 18, 2022
Fix read error detection in EXIF discovery
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants