Bug #80485 [Com]: <b>Warning</b>: exif_read_data(php16A6.tmp): Process tag(x0000=UndefinedTag)
| From: | rg at mejoramos dot com | Date: | Fri, 04 Dec 2020 14:48:00 +0000 |
| Subject: | Bug #80485 [Com]: <b>Warning</b>: exif_read_data(php16A6.tmp): Process tag(x0000=UndefinedTag) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-230850@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=80485&edit=1
ID: 80485
Comment by: rg at mejoramos dot com
Reported by: rg at mejoramos dot com
Summary: <b>Warning</b>: exif_read_data(php16A6.tmp): Process
tag(x0000=UndefinedTag)
Status: Open
Type: Bug
Package: EXIF related
Operating System: Windows 10
PHP Version: 7.4.13
Block user comment: N
Private report: N
New Comment:
some sexy images to get the error:
https://mejoramos.com/bugs/PHP_80485/
Previous Comments:
------------------------------------------------------------------------
[2020-12-04 14:38:02] 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 />
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=80485&edit=1