ID:               31980
 Updated by:       [EMAIL PROTECTED]
 Reported By:      sdteffen at gmail dot com
-Status:           Bogus
+Status:           Verified
 Bug Type:         EXIF related
 Operating System: Windows XP
 PHP Version:      4.3.10
 New Comment:

Nevermind, in windows the EXIF module isn't compiled with MBSTRING
support.



Previous Comments:
------------------------------------------------------------------------

[2005-02-15 13:44:58] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Works fine here when you really have mbstring loaded.
Please ask further support questions on the mailing lists.


------------------------------------------------------------------------

[2005-02-15 13:18:33] sdteffen at gmail dot com

I just noticed that I mixed up
"Expected Result" and "Actual Result". It's
just the other way round.
Sorry for the confusion.

------------------------------------------------------------------------

[2005-02-15 12:22:01] sdteffen at gmail dot com

Thanks for the comments.
I've updated my code according to Pierre's suggestion:

ini_set('exif.decode_unicode_intel', 'UCS-2LE');
ini_set('exif.encode_unicode','ISO-8859-1');
ini_set('exif.encode_jis','ISO-8859-1');
ini_set('exif.decode_jis_intel','ISO-8859-1');
$arrComment = exif_read_data('1.jpg', 'WINXP', true);

The problem still exists (Only first letter is returned).

Here's the example file:

http://sdteffen.de/1.jpg

------------------------------------------------------------------------

[2005-02-15 10:19:19] [EMAIL PROTECTED]

> 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"?

Loading the mbstring extension is one of the requirement, another is to
specify the encoding (See http://de.php.net/exif) using either php.ini
or ini_set.

If the problem remains, please provide a link to the image  as
requested by Sniper.

--Pierre

------------------------------------------------------------------------

[2005-02-15 10:11:26] [EMAIL PROTECTED]

Put that image file somewhere where we can download it and try
ourselves.


------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/31980

-- 
Edit this bug report at http://bugs.php.net/?id=31980&edit=1

Reply via email to