Bug #78442 [Ver->Csd]: "Illegal component" on exif_read_data since PHP7
| From: | kalle@php.net | Date: | Thu, 12 Sep 2019 03:36:49 +0000 |
| Subject: | Bug #78442 [Ver->Csd]: "Illegal component" on exif_read_data since PHP7 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-222696@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78442&edit=1
ID: 78442
Updated by: kalle@php.net
Reported by: prefix_php at digitalimagecorp dot de
Summary: "Illegal component" on exif_read_data since PHP7
-Status: Verified
+Status: Closed
Type: Bug
Package: EXIF related
Operating System: Linux (multiple)
PHP Version: 7.3.8
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of kalle
Revision: http://git.php.net/?p=php-src.git;a=commit;h=2823e938d4911c265c8100e39164711be0241074
Log: Fixed bug #78442 ('Illegal component' on exif_read_data since PHP7)
Previous Comments:
------------------------------------------------------------------------
[2019-08-21 21:41:11] prefix_php at digitalimagecorp dot de
Description:
------------
When migrating my server from PHP 5.6 to PHP 7.2 / 7.3, processing EXIF data from several image
files stopped working with error messages such as
"PHP Warning: exif_read_data(DSC00053.JPG): Process tag(xA100=UndefinedTa): Illegal
components(0) in Command line code on line 1"
It seems at least some data can be extracted, but things like extracting the preview image using
exif_thumbnail won't work.
The reference picture can be found here: http://pompeji.digitalimagecorp.de/fotos/galerie-3/DSC00053.JPG
The bug may be similar to https://bugs.php.net/bug.php?id=75785, but the
error message is different.
Test script:
---------------
php -r '$exif = exif_read_data( "DSC00053.JPG", "EXIF" );
print_r($exif);'
php -r 'exif_thumbnail("DSC00053.JPG");'
Expected result:
----------------
Extracting the thumbnail with exif_thumbnail should work.
Actual result:
--------------
The thumbnail doesn't seem to be found in the EXIF data.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78442&edit=1