Bug #80478 [Fbk->Opn]: exif_read_data(php80D2.tmp): Process tag(xE6FA=UndefinedTag): Illegal format

From: Date: Thu, 03 Dec 2020 16:09:29 +0000
Subject: Bug #80478 [Fbk->Opn]: exif_read_data(php80D2.tmp): Process tag(xE6FA=UndefinedTag): Illegal format
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230826@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80478&edit=1 ID: 80478 Updated by: cmb@php.net Reported by: rg at mejoramos dot com Summary: exif_read_data(php80D2.tmp): Process tag(xE6FA=UndefinedTag): Illegal format -Status: Feedback +Status: Open Type: Bug Package: EXIF related Operating System: Windows PHP Version: 7.4.13 Assigned To: cmb Block user comment: N Private report: N New Comment: Thanks! I'll have a look ASAP. Previous Comments: ------------------------------------------------------------------------ [2020-12-03 13:26:37] rg at mejoramos dot com hi master cmb I upload the sexy IMG here: http://mejoramos.com/bugs/DSC00006.JPG Regards xD ------------------------------------------------------------------------ [2020-12-03 13:05:17] cmb@php.net Please provide one of those images for public download from the Web. ------------------------------------------------------------------------ [2020-12-03 12:58:21] rg at mejoramos dot com 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 this bug report at https://bugs.php.net/bug.php?id=80478&edit=1

« previous php.bugs (#230826) next »