Edit report at https://bugs.php.net/bug.php?id=75424&edit=1
ID: 75424
Comment by: gen dot work at gmail dot com
Reported by: Heikki dot Vesanto at gmail dot com
Summary: exif_read_data(image.jpg): corrupt EXIF header:
maximum directory nesting
Status: No Feedback
Type: Bug
Package: EXIF related
Operating System: Ubuntu
PHP Version: 7.2.0RC4
Assigned To: kalle
Block user comment: N
Private report: N
New Comment:
print_r($exif) gives this array: https://gist.github.com/rybakit/a33b6262dfab412678f8a9559cd8ce15#file-exif_read_data-log
Previous Comments:
------------------------------------------------------------------------
[2018-11-29 13:00:26] gen dot work at gmail dot com
Same here.
PHP Version:
PHP 7.2.12 (cli) (built: Nov 6 2018 10:48:33) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.12, Copyright (c) 1999-2018, by Zend Technologies
with Xdebug v2.6.1, Copyright (c) 2002-2018, by Derick Rethans
Error:
$ php -r 'exif_read_data("bad-exif.jpg");'
PHP Warning: exif_read_data(lc-bad-exif.jpg): corrupt EXIF header: maximum directory nesting level
reached in Command line code on line 1
PHP Stack trace:
PHP 1. {main}() Command line code:0
PHP 2. exif_read_data() Command line code:1
Warning: exif_read_data(lc-bad-exif.jpg): corrupt EXIF header: maximum directory nesting level
reached in Command line code on line 1
Call Stack:
0.0003 397952 1. {main}() Command line code:0
0.0003 397952 2. exif_read_data() Command line code:1
------------------------------------------------------------------------
[2018-03-17 12:49:54] roman dot kucera at gmail dot com
In PHP Version 7.2.3 it is ok.
------------------------------------------------------------------------
[2018-03-16 09:19:35] roman dot kucera at gmail dot com
same problem
Warning: exif_read_data(01546_02_00.jpg): corrupt EXIF header: maximum directory nesting level
reached
with camera Canon 760D
PHP Version 7.0.5 and every earlier version
------------------------------------------------------------------------
[2017-11-12 04:22:38] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
------------------------------------------------------------------------
[2017-10-29 15:26:41] kalle@php.net
Hi Heikki, I tried to test both images with the latest master and PHP 7.2, and there are no
differences nor have there been any changes to the EXIF extension since around the time of 7.2.0
Beta 1.
Both images parses perfectly fine and extracts the EXIF data for me
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=75424
--
Edit this bug report at https://bugs.php.net/bug.php?id=75424&edit=1