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

From: Date: Thu, 03 Dec 2020 13:05:17 +0000
Subject: Bug #80478 [Opn->Fbk]: 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-230822@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:             Open
+Status:             Feedback
 Type:               Bug
 Package:            EXIF related
 Operating System:   Windows
 PHP Version:        7.4.13
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

Please provide one of those images for public download from the
Web.


Previous Comments:
------------------------------------------------------------------------
[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


Thread (18 messages)

« previous php.bugs (#230822) next »