|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78442 "Illegal component" on exif_read_data since PHP7
Submitted: 2019-08-21 21:41 UTC Modified: 2019-09-12 03:41 UTC
From: prefix_php at digitalimagecorp dot de Assigned: kalle (profile)
Status: Closed Package: EXIF related
PHP Version: 7.3.8 OS: Linux (multiple)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: prefix_php at digitalimagecorp dot de
New email:
PHP Version: OS:


 [2019-08-21 21:41 UTC] prefix_php at digitalimagecorp dot de
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:

The bug may be similar to, 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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-08-23 15:39 UTC]
-Status: Open +Status: Verified
 [2019-09-12 03:36 UTC]
Automatic comment on behalf of kalle
Log: Fixed bug #78442 ('Illegal component' on exif_read_data since PHP7)
 [2019-09-12 03:36 UTC]
-Status: Verified +Status: Closed
 [2019-09-12 03:41 UTC]
-Assigned To: +Assigned To: kalle
 [2019-09-12 03:41 UTC]
The fix for this should be in either this month or next months release of PHP from the 7.2+ branch.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jul 20 20:01:28 2024 UTC