#49869 [Asn->Fbk]: imagettfbbox returns bogus value
| From: | tabe@php.net | Date: | Mon, 18 Jan 2010 09:36:43 +0000 |
| Subject: | #49869 [Asn->Fbk]: imagettfbbox returns bogus value | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-146759@lists.php.net to get a copy of this message | ||
ID: 49869
Updated by: tabe@php.net
Reported By: orel at melix dot net
-Status: Assigned
+Status: Feedback
Bug Type: GD related
Operating System: Linux
PHP Version: 5.2.11
Assigned To: tabe
New Comment:
Please try using this snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[2009-11-04 15:05:50] orel at melix dot net
It is ok with PHP 5.3.2-dev
with this configure line
./configure --with-gd --enable-gd-native-ttf --with-freetype-dir
Result is
Array
(
[0] => -1
[1] => 3
[2] => 173
[3] => 3
[4] => 173
[5] => -14
[6] => -1
[7] => -14
)
------------------------------------------------------------------------
[2009-10-29 03:30:31] tabe@php.net
Please try using this snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
It looks ok with PHP_5_3:
Array
(
[0] => -1
[1] => 3
[2] => 173
[3] => 3
[4] => 173
[5] => -14
[6] => -1
[7] => -14
)
------------------------------------------------------------------------
[2009-10-13 18:56:23] pajoye@php.net
Hm that one is new, time to look at it Tabe?
------------------------------------------------------------------------
[2009-10-13 18:41:08] orel at melix dot net
Description:
------------
imagettfbbox returns bogus values:
Array
(
[0] => 0
[1] => 3
[2] => -2147483648
[3] => 3
[4] => -2147483648
[5] => -14
[6] => 0
[7] => -14
)
5.2.0-8+etch13 is ok
5.2.11-1 is ko
Reproduce code:
---------------
print_r(imagettfbbox(12, 0,"/home/somewhere/verdanab.ttf", "Recipient
responses"));
Expected result:
----------------
Array
(
[0] => 0
[1] => 3
[2] => 181
[3] => 3
[4] => 181
[5] => -14
[6] => 0
[7] => -14
)
Actual result:
--------------
Array
(
[0] => 0
[1] => 3
[2] => -2147483648
[3] => 3
[4] => -2147483648
[5] => -14
[6] => 0
[7] => -14
)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49869&edit=1