From:
Operating system: OSX 10.6.8
PHP version: 5.3.8
Package: EXIF related
Bug Type: Bug
Bug description:"FILE" section argument ignored
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)
}
}
--
Edit bug report at https://bugs.php.net/bug.php?id=60250&edit=1
--
Try a snapshot (PHP 5.4):
https://bugs.php.net/fix.php?id=60250&r=trysnapshot54
Try a snapshot (PHP 5.3):
https://bugs.php.net/fix.php?id=60250&r=trysnapshot53
Try a snapshot (trunk):
https://bugs.php.net/fix.php?id=60250&r=trysnapshottrunk
Fixed in SVN:
https://bugs.php.net/fix.php?id=60250&r=fixed
Fixed in SVN and need be documented:
https://bugs.php.net/fix.php?id=60250&r=needdocs
Fixed in release:
https://bugs.php.net/fix.php?id=60250&r=alreadyfixed
Need backtrace:
https://bugs.php.net/fix.php?id=60250&r=needtrace
Need Reproduce Script:
https://bugs.php.net/fix.php?id=60250&r=needscript
Try newer version:
https://bugs.php.net/fix.php?id=60250&r=oldversion
Not developer issue:
https://bugs.php.net/fix.php?id=60250&r=support
Expected behavior:
https://bugs.php.net/fix.php?id=60250&r=notwrong
Not enough info:
https://bugs.php.net/fix.php?id=60250&r=notenoughinfo
Submitted twice:
https://bugs.php.net/fix.php?id=60250&r=submittedtwice
register_globals:
https://bugs.php.net/fix.php?id=60250&r=globals
PHP 4 support discontinued:
https://bugs.php.net/fix.php?id=60250&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=60250&r=dst
IIS Stability:
https://bugs.php.net/fix.php?id=60250&r=isapi
Install GNU Sed:
https://bugs.php.net/fix.php?id=60250&r=gnused
Floating point limitations:
https://bugs.php.net/fix.php?id=60250&r=float
No Zend Extensions:
https://bugs.php.net/fix.php?id=60250&r=nozend
MySQL Configuration Error:
https://bugs.php.net/fix.php?id=60250&r=mysqlcfg