#48801 [Com]: Problem with imagettfbbox
| From: | info at classic-emaille dot de | Date: | Thu, 09 Jul 2009 09:47:30 +0000 |
| Subject: | #48801 [Com]: Problem with imagettfbbox | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-139516@lists.php.net to get a copy of this message | ||
ID: 48801
Comment by: info at classic-emaille dot de
Reported By: dgdd at wanadoo dot fr
Status: Open
Bug Type: GD related
Operating System: Windows XP
PHP Version: 5.3.0
New Comment:
Hello,
I have the same problem after upgrading from PHP version 5.2.9 to
version 5.2.10.
imagettfbbox delivers in version 5.2.10 different values then in
version
5.2.9.
Previous Comments:
------------------------------------------------------------------------
[2009-07-05 06:12:54] dgdd at wanadoo dot fr
Description:
------------
delivered value problem
Reproduce code:
---------------
$dimensions_texte = imagettfbbox( 50, 0, "SCRIPTIN.TTF", "test");
echo $dimensions_texte[0]." * ";
echo $dimensions_texte[1]." * ";
echo $dimensions_texte[2]." * ";
echo $dimensions_texte[3]." * ";
echo $dimensions_texte[4]." * ";
echo $dimensions_texte[5]." * ";
echo $dimensions_texte[6]." * ";
echo $dimensions_texte[7]."<br>";
Expected result:
----------------
Width PHP 5.2.8 :
-1 * 36 * 98 * 36 * 98 * -61 * -1 * -61 <<<< PHP 5.2.8
Actual result:
--------------
Width PHP 5.3.0
-1 * -1 * 104 * -1 * 104 * -100 * -1 * -100 <<<< PHP 5.3.0
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48801&edit=1