php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #32986 The documentation for exif_read_data() doesn't say if it validates tags
Submitted: 2005-05-09 16:43 UTC Modified: 2005-06-07 13:50 UTC
From: avarab at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: GNU/Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
18 - 10 = ?
Subscribe to this entry?

 
 [2005-05-09 16:43 UTC] avarab at gmail dot com
Description:
------------
The documentation for exif_read_data() at http://www.php.net/exif_read_data doesn't state whether or not the function validates Exif data before returning it, my guess is not but it should be explicitly stated.

Validation of Exif data would be to check if the contents of a given tag conform to the value it's supposed to hold according to the Exif specification ( see: http://exif.org/Exif2-2.PDF , page 20), for example a tag which should hold a BYTE (according to the spec) should not hold anything besides an 8bit integer, short should not be anything besides a 16 bit unsigned integer and so on.

I'm not suggesting that exif_read_data() does this (if it doesn't) but merely that the documentation be updated to state whether or not it does.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-06-07 13:50 UTC] mazzanet@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jun 17 17:01:29 2024 UTC