php.net |  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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: prefix_php at digitalimagecorp dot de
New email:
PHP Version: OS:

 

 [2019-08-21 21:41 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-08-23 15:39 UTC] cmb@php.net
-Status: Open +Status: Verified
 [2019-09-12 03:36 UTC] kalle@php.net
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)
 [2019-09-12 03:36 UTC] kalle@php.net
-Status: Verified +Status: Closed
 [2019-09-12 03:41 UTC] kalle@php.net
-Assigned To: +Assigned To: kalle
 [2019-09-12 03:41 UTC] kalle@php.net
The fix for this should be in either this month or next months release of PHP from the 7.2+ branch.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Sep 22 11:01:27 2019 UTC