From: propheteia at gmail dot com
Operating system: Windows XP Pre
PHP version: 5.0.3
PHP Bug Type: GD related
Bug description: GD
Description:
------------
I am Chinese, I an apologize for my poor English first.
I can not navigate the image-created php file when I encode it as UTF-8,
but it work very well when it is encoded as ANSI. My text editor are
Dreamweaver and notepad, and my test it at platform Apache 2.00 and PHP
5.0.3! See you later!
Reproduce code:
---------------
<?php
header("Content-type: image/png");
$img=imagecreate(50, 50);
$color_bg = imagecolorallocate($img, 0, 0, 0);
imagerectangle($img, 0, 0, 50, 50, $color_bg);
$color_text = imagecolorallocate($img, 00, 255, 255);
imagestring($img, 4, 0, 0, 'Hello', $color_text);
imagepng($img);
imagedestroy($img);
?>
Expected result:
----------------
see
--
Edit bug report at http://bugs.php.net/?id=33812&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33812&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=33812&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=33812&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33812&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33812&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33812&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33812&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33812&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33812&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33812&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=33812&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=33812&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33812&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33812&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33812&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33812&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33812&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33812&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33812&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33812&r=mysqlcfg