Skip to content

Conversation

@cmb69
Copy link
Member

@cmb69 cmb69 commented Jun 15, 2016

Ignoring these warnings apparently works fine (libgd does so in
gdImageCreateJpeg()), but not ignoring them may cause imagecreatefromjpeg()
to fail completely, so it seems reasonable to ignore warnings by default.

Note that this change most likely doesn't constitute a BC break; we're
simply being more resilient with regard to slightly broken JPEGs.

See also the related bug #72404.

I don't think this change requires an RFC, but if others feel otherwise I can make one.

If the PR will be accepted, I'll change the documentation accordingly.

Ignoring these warnings apparently works fine (libgd does so in
gdImageCreateJpeg()), but not ignoring them may cause imagecreatefromjpeg()
to fail completely, so it seems reasonable to ignore warnings by default.

Note that this change most likely doesn't constitute a BC break; we're
simply being more resilient with regard to slightly broken JPEGs.

See also the related [bug #72404](https://bugs.php.net/bug.php?id=72404).
@cmb69
Copy link
Member Author

cmb69 commented Jun 15, 2016

The failing Travis checks appear to be unrelated to this PR.

@php-pulls php-pulls merged commit c0efb06 into php:master Jul 3, 2016
@cmb69 cmb69 deleted the jpeg_ignore_warning branch July 3, 2016 10:45
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.

2 participants