From: sdteffen at gmail dot com Operating system: Windows XP PHP version: 4.3.10 PHP Bug Type: EXIF related Bug description: Unable to Extract Windows XP EXIF Information
Description: ------------ I'm trying to extract EXIF information created by the Windows XP Explorer (In particular the Comments field). Dumping the array created by exif_read_data('c:\test.jpg','WINXP',true); includes the following result: ["WINXP"]=> array(1) { ["Comments"]=> string(1) "G" } The problem is that the comment is not only the letter "G", but a full sentence (starting with G). Apparently, the comment is UNICODE (UCS-2?). I tried to use mb_string (Loading php_mbstring.dll before php_exif.dll like outlined in the PHP manual) without success. The constant EXIF_USE_MBSTRING is 0 - isn't this a contradiction with the PHP Manual that says "Windows users must also have the mbstring extension enabled"? If this is not a bug, please consider it as a request to enhance the PHP Manual with a small example showing the necessary php.ini configurations to use in conjuction with Windows XP Explorer EXIF comments. Windows Explorer is the most convenient application for our users to add EXIF comments. PHP 4.3.10 Zipfile distribution, using the CGI (php.exe). Reproduce code: --------------- exif_read_data('c:\test.jpg','WINXP',true); Expected result: ---------------- ["WINXP"]=> array(1) { ["Comments"]=> string(1) "G" } Actual result: -------------- ["WINXP"]=> array(1) { ["Comments"]=> string(1) "Generator and pump" } -- Edit bug report at http://bugs.php.net/?id=31980&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31980&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31980&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31980&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31980&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31980&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31980&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31980&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31980&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31980&r=support Expected behavior: http://bugs.php.net/fix.php?id=31980&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31980&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31980&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31980&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31980&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31980&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31980&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31980&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31980&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31980&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31980&r=mysqlcfg