Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001860 [Quercus] minor always 07-09-07 19:03 07-20-07 16:42
Reporter toomasr View Status public  
Assigned To nam
Priority normal Resolution fixed  
Status closed   Product Version 3.1.2
Summary 0001860: imagepng() - illegal utf8 encoding
Description Using Quercus as JSR223 scriptengine the version is SVN trunk. Stacktrace attached. PHP code is sample from http://ee2.php.net/manual/en/function.imagecreate.php [^]

----------------- PHP -----------------
$im = @imagecreate(110, 20)
    or die("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate($im, 0, 0, 0);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5, "A Simple Text String", $text_color);
imagepng($im);
imagedestroy($im);
--------------- EOF PHP ---------------

Produces an java.io.CharConversionException: illegal utf8 encoding from com.caucho.vfs.ReaderWriterStream.write. It seems the bytes in the image are checked for being UTF8 characters which fails.
Additional Information
Attached Files  stacktrace.txt [^] (4,783 bytes) 07-09-07 19:03

- Relationships

- Notes
(0002121)
nam
07-20-07 16:42

php/2149
 

- Issue History
Date Modified Username Field Change
07-09-07 19:03 toomasr New Issue
07-09-07 19:03 toomasr File Added: stacktrace.txt
07-09-07 19:03 toomasr Issue Monitored: toomasr
07-19-07 16:35 nam Status new => assigned
07-19-07 16:35 nam Assigned To  => nam
07-20-07 16:42 nam Status assigned => closed
07-20-07 16:42 nam Note Added: 0002121
07-20-07 16:42 nam Resolution open => fixed
07-20-07 16:42 nam Fixed in Version  => 3.1.3


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker