Bug #80478 [NEW]: exif_read_data(php80D2.tmp): Process tag(xE6FA=UndefinedTag): Illegal format

From: Date: Thu, 03 Dec 2020 12:58:21 +0000
Subject: Bug #80478 [NEW]: exif_read_data(php80D2.tmp): Process tag(xE6FA=UndefinedTag): Illegal format
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230821@lists.php.net to get a copy of this message
From: rg at mejoramos dot com Operating system: Windows PHP version: 7.4.13 Package: EXIF related Bug Type: Bug Bug description:exif_read_data(php80D2.tmp): Process tag(xE6FA=UndefinedTag): Illegal format Description: ------------ I upload image to process with exif_read_data with some photos result is: """ exif_read_data(php80D2.tmp): Process tag(xE6FA=UndefinedTag): Illegal format code 0x2035, suppose BYTE in ... [FILE] + [LINE] """ I see: https://bugs.php.net/bug.php?id=40073 and others. Test script: --------------- $finfo = finfo_open(FILEINFO_MIME); $FT = finfo_file($finfo, $_FILES['img']['tmp_name']); finfo_close($finfo); if(preg_match('/image/i', $FT)){ if(preg_match('/jpeg|jpg/i', $FT)){ $FT = exif_read_data($_FILES['img']['tmp_name']); just LAST LINE = error Expected result: ---------------- ARRAY with DATE of creation, width, size, name, etc... Actual result: -------------- exif_read_data(php80D2.tmp): Process tag(xE6FA=UndefinedTag): Illegal format code 0x2035, suppose BYTE in ... [FILE] + [LINE] -- Edit bug report at https://bugs.php.net/bug.php?id=80478&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80478&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80478&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80478&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80478&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80478&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80478&r=support Expected behavior: https://bugs.php.net/fix.php?id=80478&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80478&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80478&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80478&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80478&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80478&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80478&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80478&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80478&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80478&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80478&r=mysqlcfg

« previous php.bugs (#230821) next »