Bug #79687 [ReO->Ver]: Sony picture - PHP Warning - Make, Model, MakerNotes
| From: | cmb@php.net | Date: | Sat, 13 Jun 2020 12:14:14 +0000 |
| Subject: | Bug #79687 [ReO->Ver]: Sony picture - PHP Warning - Make, Model, MakerNotes | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-227465@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79687&edit=1
ID: 79687
Updated by: cmb@php.net
Reported by: 7tonin at laposte dot net
Summary: Sony picture - PHP Warning - Make, Model, MakerNotes
-Status: Re-Opened
+Status: Verified
Type: Bug
Package: EXIF related
Operating System: linux 5.6.14-desktop-2.mga7 x86
PHP Version: 7.3.18
Assigned To: cmb
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2020-06-13 12:13:59] cmb@php.net
The following pull request has been associated:
Patch Name: Fix #79687: Sony picture - PHP Warning - Make, Model, MakerNotes
On GitHub: https://github.com/php/php-src/pull/5709
Patch: https://github.com/php/php-src/pull/5709.patch
------------------------------------------------------------------------
[2020-06-12 14:34:41] cmb@php.net
> Previous PHP version did succeed in retrieving thumbnailImage
> from Exif. Can we call that a regression ?
Indeed. I had solely focused on exif_read_data(), but ignored
that extracting the thumbnail fails.
------------------------------------------------------------------------
[2020-06-12 12:36:34] 7tonin at laposte dot net
I understand PHP is not supposed to solve problems potentially dropped by image editors. This
picture seems cropped before I had received it.
Previous PHP version did succeed in retrieving thumbnailImage from Exif. Can we call that a
regression ?
On my webserver, with the warning comes the modification of file rights to apache:apache
(owner:group). I suspect httpd more than PHP, or maybe a secure layer behaviour.
Anyway, the workaround is easy.
------------------------------------------------------------------------
[2020-06-12 07:32:00] cmb@php.net
Thanks for sending the image by mail!
I can confirm the reported behavior, but I cannot see why that
would be a bug. The PHP warning for the unmodified image
correlates to exiftool's:
Warning : Bad MakerNotes directory
------------------------------------------------------------------------
[2020-06-11 12:53:23] cmb@php.net
Could you please make the image file available somewhere else for
download?
------------------------------------------------------------------------
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=79687
--
Edit this bug report at https://bugs.php.net/bug.php?id=79687&edit=1