From:             zerkella at i dot ua
Operating system: windows, linux
PHP version:      5.3.1
PHP Bug Type:     EXIF related
Bug description:  exif_read_data returns corrupted exif headers

Description:
------------
exif_read_data returns bad values for headers for some photos. Headers
look like corrupted during extraction from file - like they were mixed with
and overwritten by other exif headers.

I tried to check Exif headers for same photos with XnView - it shows them
nicely. So the problem is somewhere in php.

Files to reproduce this bug:
http://i.i.ua/php_bugs/62418.jpg
http://i.i.ua/php_bugs/39908.jpg
http://i.i.ua/php_bugs/21260.jpg


Reproduce code:
---------------
var_dump(exif_read_data('http://i.i.ua/php_bugs/62418.jpg', 'EXIF'));


var_dump(exif_read_data('http://i.i.ua/php_bugs/39908.jpg', 'EXIF'));

Expected result:
----------------
array(34) {
...
  ["Make"]=> string(11) "FUJI PHOTO FILM CO., LTD."
  ["Model"]=> string(7) "SLP800"
...
  ["Software"]=>  string(3) "FDi V4.5 / FRONTIER330-3.0-0E-5"
...
  ["DateTimeOriginal"]=> string(11) "2005:08:04 12:05:55"
...
}


array(49) {
...
  ["ApertureFNumber"]=> string(12) "f8.0"
...
  ["Make"]=> string(4) "Canon"
  ["Model"]=> string(2) "Canon EOS DIGITAL REBEL"
...
  ["ExposureTime"]=> string(13) "6250/1000000"
  ["FNumber"]=> string(13) "8.0"
  ["DateTimeOriginal"]=> string(19) "2005:05:14 19:00:41"
...
}





Actual result:
--------------
array(34) {
...
  ["Make"]=> string(11) "04 12:05:55"
  ["Model"]=> string(7) "M CO., "
...
  ["Software"]=>  string(3) "TD."
...
  ["DateTimeOriginal"]=> string(11) "-3.0-0E-518"
...
}


array(49) {
...
  ["ApertureFNumber"]=> string(12) "f/74099368.0"
...
  ["Make"]=> string(4) "Exif"
  ["Model"]=> string(2) "I*"
...
  ["ExposureTime"]=> string(13) "1111490560/15"
  ["FNumber"]=> string(13) "1111490560/15"
  ["DateTimeOriginal"]=> NULL
...
}





-- 
Edit bug report at http://bugs.php.net/?id=50845&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=50845&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=50845&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=50845&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=50845&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=50845&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=50845&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=50845&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=50845&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=50845&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=50845&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=50845&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=50845&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=50845&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=50845&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=50845&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=50845&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=50845&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=50845&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=50845&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=50845&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=50845&r=mysqlcfg

Reply via email to