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

From: Date: Fri, 04 Dec 2020 13:18:49 +0000
Subject: Bug #80478 [Asn->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-230842@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:             Assigned
+Status:             Feedback
 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:

While I get some warnings regarding undefined tags, I get
otherwise expected output from exit_read_data():
<https://gist.github.com/cmb69/83eddfa74f133cc6fd3848cba54e5772>

Are you sure that you are using PHP 7.4.13, and that the provided
image fails for you?


Previous Comments:
------------------------------------------------------------------------
[2020-12-03 16:09:29] cmb@php.net

Thanks!  I'll have a look ASAP.

------------------------------------------------------------------------
[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


Thread (18 messages)

« previous php.bugs (#230842) next »