php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #80485 <b>Warning</b>: exif_read_data(php16A6.tmp): Process tag(x0000=UndefinedTag)
Submitted: 2020-12-04 14:38 UTC Modified: 2020-12-04 15:09 UTC
From: rg at mejoramos dot com Assigned:
Status: Duplicate Package: EXIF related
PHP Version: 7.4.13 OS: Windows 10
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rg at mejoramos dot com
New email:
PHP Version: OS:

 

 [2020-12-04 14:38 UTC] 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=80478

PD:
same error running PHP 8.0.0

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']);



Expected result:
----------------
ARRAY with DATE of creation, width, height, size, name, etc...

Actual result:
--------------
<b>Warning</b>: exif_read_data(php16A6.tmp): Process tag(x0000=UndefinedTag): Illegal format code 0x0000, suppose BYTE in <b>D:\HTTP\WWW\home\desarrollos\decoco\img_info.php</b> on line <b>19</b><br />

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-12-04 14:48 UTC] rg at mejoramos dot com
some sexy images to get the error:
https://mejoramos.com/bugs/PHP_80485/
 [2020-12-04 15:09 UTC] requinix@php.net
-Status: Open +Status: Duplicate
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Sep 07 23:01:27 2024 UTC