From:             avarab at gmail dot com
Operating system: GNU/Linux
PHP version:      Irrelevant
PHP Bug Type:     Documentation problem
Bug description:  The documentation for exif_read_data() doesn't say if it 
validates tags

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.


-- 
Edit bug report at http://bugs.php.net/?id=32986&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32986&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32986&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32986&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32986&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32986&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32986&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32986&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32986&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32986&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32986&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=32986&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=32986&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32986&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32986&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32986&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32986&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32986&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32986&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32986&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32986&r=mysqlcfg

Reply via email to