|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-10-18 21:59 UTC] rimantas dot ragainis at gmail dot com
[2016-08-03 03:49 UTC] kalle@php.net
-Status: Open
+Status: Not a bug
[2016-08-03 03:49 UTC] kalle@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 14:00:01 2025 UTC |
Description: ------------ Hello, According to the documentation, the exif_read_data() allows to speficy the section we want to return. It seems the section argument "FILE" is not being considered and return the same result if 0 argument was given. Extension informations: EXIF Version: 1.4 $Id: exif.c 314376 2011-08-06 14:47:44Z felipe $ Supported EXIF: Version 0220 Supported filetypes: JPEG,TIFF Test script: --------------- <?php var_dump(exif_read_data(__DIR__ . 'sample-1.jpg', 'FILE', true)); ?> Expected result: ---------------- array(1) { ["FILE"]=> array(6) { ["FileName"]=> string(12) "sample-1.jpg" ["FileDateTime"]=> int(1320829793) ["FileSize"]=> int(162) ["FileType"]=> int(2) ["MimeType"]=> string(10) "image/jpeg" ["SectionsFound"]=> string(0) "COMPUTED" } } Actual result: -------------- array(2) { ["FILE"]=> array(6) { ["FileName"]=> string(12) "sample-1.jpg" ["FileDateTime"]=> int(1320829793) ["FileSize"]=> int(162) ["FileType"]=> int(2) ["MimeType"]=> string(10) "image/jpeg" ["SectionsFound"]=> string(0) "" } ["COMPUTED"]=> array(4) { ["html"]=> string(22) "width="10" height="10"" ["Height"]=> int(10) ["Width"]=> int(10) ["IsColor"]=> int(0) } }