#42218 [NEW]: ImageTTFBBox & any2eucjp

From: Date: Mon, 06 Aug 2007 11:42:42 +0000
Subject: #42218 [NEW]: ImageTTFBBox & any2eucjp
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-115793@lists.php.net to get a copy of this message
From:             fernando at barnatech dot com
Operating system: Suse 10.1
PHP version:      5.2.4RC1
PHP Bug Type:     GD related
Bug description:  ImageTTFBBox & any2eucjp

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 bug report at http://bugs.php.net/?id=42218&edit=1
-- 
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42218&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42218&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42218&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=42218&r=fixedcvs
Fixed in release:             http://bugs.php.net/fix.php?id=42218&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=42218&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=42218&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=42218&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=42218&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=42218&r=notwrong
Not enough info:              http://bugs.php.net/fix.php?id=42218&r=notenoughinfo
Submitted twice:              http://bugs.php.net/fix.php?id=42218&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=42218&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42218&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=42218&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=42218&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=42218&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42218&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=42218&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=42218&r=mysqlcfg


Thread (24 messages)

« previous php.bugs (#115793) next »