Bug #78442 [NEW]: "Illegal component" on exif_read_data since PHP7

From: Date: Wed, 21 Aug 2019 21:41:11 +0000
Subject: Bug #78442 [NEW]: "Illegal component" on exif_read_data since PHP7
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-222360@lists.php.net to get a copy of this message
From: prefix_php at digitalimagecorp dot de Operating system: Linux (multiple) PHP version: 7.3.8 Package: EXIF related Bug Type: Bug Bug description:"Illegal component" on exif_read_data since PHP7 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 bug report at https://bugs.php.net/bug.php?id=78442&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=78442&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78442&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78442&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78442&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78442&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78442&r=support Expected behavior: https://bugs.php.net/fix.php?id=78442&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78442&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78442&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78442&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=78442&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=78442&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78442&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78442&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78442&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78442&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78442&r=mysqlcfg

« previous php.bugs (#222360) next »