Bug #78701 [Com]: exif_read_data: corrupt EXIF header: maximum directory nesting level reached
Edit report at https://bugs.php.net/bug.php?id=78701&edit=1
ID: 78701
Comment by: ton at meuleman dot net
Reported by: gino0631 at centaurus dot cloud
Summary: exif_read_data: corrupt EXIF header: maximum
directory nesting level reached
Status: Open
Type: Bug
Package: EXIF related
Operating System: CentOS
PHP Version: 7.3.11
Block user comment: N
Private report: N
New Comment:
Starting from March 18th the pictures made with my DSC-HX400V camera using exif_read_data returns
the same error message.
The previous picture gives the correct result.
Using ExifToolGUI I discovered that something changed the compression settings of the camera from
Compression JPEG (old style) in a couple of new entries.
I'm running PHP 7.4.3.0 on Windows 10.
Previous Comments:
------------------------------------------------------------------------
[2019-12-29 02:03:20] gino0631 at centaurus dot cloud
Same with PHP 7.2.26 and 7.3.13.
------------------------------------------------------------------------
[2019-10-23 20:36:02] gino0631 at centaurus dot cloud
With PHP 7.2.24 and 7.3.11, the results are the same.
------------------------------------------------------------------------
[2019-10-20 22:12:32] gino0631 at centaurus dot cloud
wget https://maps.gisforthought.com/Photos/12_Adventure_Duck.jpg
echo '<?php $exif = exif_read_data("12_Adventure_Duck.jpg");' > test.php
/opt/remi/php71/root/bin/php --version
PHP 7.1.32 (cli) (built: Aug 28 2019 12:57:54) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
/opt/remi/php71/root/bin/php test.php
# No error
/opt/remi/php72/root/bin/php --version
PHP 7.2.23 (cli) (built: Sep 25 2019 07:56:34) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
/opt/remi/php72/root/bin/php test.php
PHP Warning: exif_read_data(12_Adventure_Duck.jpg): corrupt EXIF header: maximum directory nesting
level reached in /tmp/test.php on line 1
/opt/remi/php73/root/bin/php --version
PHP 7.3.10 (cli) (built: Sep 24 2019 09:20:18) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.10, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.10, Copyright (c) 1999-2018, by Zend Technologies
/opt/remi/php73/root/bin/php test.php
PHP Warning: exif_read_data(12_Adventure_Duck.jpg): corrupt EXIF header: maximum directory nesting
level reached in /tmp/test.php on line 1
------------------------------------------------------------------------
[2019-10-20 15:36:25] cmb@php.net
With PHP 7.3 (current HEAD) on Windows I get:
PHP Warning: exif_read_data(78701.php): File not supported in %s on line %d
------------------------------------------------------------------------
[2019-10-20 14:50:16] girgias@php.net
Related To: Bug #75424
------------------------------------------------------------------------
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=78701
--
Edit this bug report at https://bugs.php.net/bug.php?id=78701&edit=1
Thread (8 messages)