Bug #75275 [Fbk->Opn]: imagecreatefrom Functions Not Failing On Corrupt Images
| From: | coryldean at gmail dot com | Date: | Thu, 28 Sep 2017 17:36:38 +0000 |
| Subject: | Bug #75275 [Fbk->Opn]: imagecreatefrom Functions Not Failing On Corrupt Images | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-211429@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75275&edit=1
ID: 75275
User updated by: coryldean at gmail dot com
Reported by: coryldean at gmail dot com
Summary: imagecreatefrom Functions Not Failing On Corrupt
Images
-Status: Feedback
+Status: Open
Type: Bug
Package: GD related
Operating System: Linux
PHP Version: 7.1.9
Block user comment: N
Private report: N
New Comment:
If I could buy you a drink I would! Setting gd.jpeg_ignore_warning=0 worked as I was expecting.
Thank you!
Previous Comments:
------------------------------------------------------------------------
[2017-09-28 16:09:33] requinix@php.net
Actually, before that, try setting gd.jpeg_ignore_warning=0 in 7.1.
------------------------------------------------------------------------
[2017-09-28 16:00:38] requinix@php.net
Upload it somewhere that does not try to process images - like a file-sharing site but not an
image-sharing site. A personal website works too.
------------------------------------------------------------------------
[2017-09-28 15:13:56] coryldean at gmail dot com
How do I attach or provide you an example of a corrupted image?
------------------------------------------------------------------------
[2017-09-28 15:11:52] coryldean at gmail dot com
PHP 7.1.9 -> GD Version -> 2.1.0
PHP 5.2.17 -> GD Version -> 2.0.34
------------------------------------------------------------------------
[2017-09-28 14:56:56] daverandom@php.net
Please also provide the libgd versions from both the installation where you got the expected result
and the installation where it didn't - var_dump(GD_VERSION)
This is likely to be caused by an upstream change in libgd. The difference between the libgd
versions that 5.2.17 and 7.1.9 are built against is likely to be huge, and PHP will only report an
error if libgd does.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=75275
--
Edit this bug report at https://bugs.php.net/bug.php?id=75275&edit=1