Edit report at https://bugs.php.net/bug.php?id=80478&edit=1
ID: 80478
Comment by: rg at mejoramos dot com
Reported by: rg at mejoramos dot com
Summary: exif_read_data(php80D2.tmp): Process
tag(xE6FA=UndefinedTag): Illegal format
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:
>>> Are you sure that you are using PHP 7.4.13 ?
Master CMB in my FIRST/ORIGINAL post I put:
"""
I can't choice my current version PHP 7.4.5 please look:
https://pasteboard.co/JDn53qo.png
"""
but after of I submit, message disappear.
But more:
same bug/error running PHP 8.0.0
Thanks by you check,
my work is stopped becouse I need process a lot of this images...
Regards
Previous Comments:
------------------------------------------------------------------------
[2020-12-04 13:18:49] cmb@php.net
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?
------------------------------------------------------------------------
[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