Bug #80485 [NEW]: <b>Warning</b>: exif_read_data(php16A6.tmp): Process tag(x0000=UndefinedTag)

From: Date: Fri, 04 Dec 2020 14:38:02 +0000
Subject: Bug #80485 [NEW]: <b>Warning</b>: exif_read_data(php16A6.tmp): Process tag(x0000=UndefinedTag)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230849@lists.php.net to get a copy of this message
From:             rg at mejoramos dot com
Operating system: Windows 10
PHP version:      7.4.13
Package:          EXIF related
Bug Type:         Bug
Bug description:<b>Warning</b>: exif_read_data(php16A6.tmp): Process
tag(x0000=UndefinedTag)

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

-- 
Edit bug report at https://bugs.php.net/bug.php?id=80485&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=80485&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=80485&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=80485&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=80485&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=80485&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=80485&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=80485&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=80485&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=80485&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=80485&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80485&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=80485&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=80485&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=80485&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=80485&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=80485&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=80485&r=mysqlcfg


Thread (3 messages)

« previous php.bugs (#230849) next »