#42218 [Opn->Bgs]: ImageTTFBBox & any2eucjp

From: Date: Mon, 06 Aug 2007 11:55:22 +0000
Subject: #42218 [Opn->Bgs]: ImageTTFBBox & any2eucjp
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-115794@lists.php.net to get a copy of this message
 ID:               42218
 Updated by:       pajoye@php.net
 Reported By:      fernando at barnatech dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         GD related
 Operating System: Suse 10.1
 PHP Version:      5.2.4RC1
 New Comment:

Don't open two bugs for the same issue.

"By the way, there are no font bugs solved since PHP 5.0.4."

So wrong. if you have any issue with the ttf function, please report
them with:
- the font you use
- a script to reproduce it
- the encoding used in your script

Thanks.

But I close this bug as duplicated of #39543 (> bogus). Add your
comments to #39543.


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

[2007-08-06 11:42:42] fernando at barnatech dot com

Description:
------------
I don't know why bug #39543 is closed, as it's still alive in
5.2.4RC1.

The original poster of the bug proved it with accented letters. In my
case the trouble comes from the euro sign (a very big trouble, IMHO).
Tipically related to non ascii encoding.

By the way, there are no font bugs solved since PHP 5.0.4.

Reproduce code:
---------------
<?php
$bounds = ImageTTFBBox(9,0,              
'/home/max/workspace/wwwdev/libraries/jpgraph/ttf/arial.ttf',
'áéíóú'
);
?>

or

<?php
$bounds = ImageTTFBBox(9,0,              
'/home/max/workspace/wwwdev/libraries/jpgraph/ttf/arial.ttf',
'€'
);
?>

Expected result:
----------------
no warning

Actual result:
--------------
Warning: imagettfbbox() [function.imagettfbbox]: any2eucjp(): invalid
code in input string in /home/max/workspace/wwwdev/web/test.php on
line
5


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


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


Thread (24 messages)

« previous php.bugs (#115794) next »