ID: 36498
User updated by: capile at tcdesign dot com dot br
Reported By: capile at tcdesign dot com dot br
-Status: Feedback
+Status: Open
Bug Type: GD related
Operating System: Linux
PHP Version: 4.4.2
New Comment:
Just tried the latest stable snapshot, and still an awkward result:
php4-STABLE-200602231535/bin/php ~/gd-test.php
Array
(
[0] => 1
[1] => 11
[2] => -1073758856
[3] => 1083817944
[4] => 1083820576
[5] => 1083820576
[6] => -1073758840
[7] => 1083048044
)
This did not happen in 4.4.2 release (not snapshot) in Win32, neither
in 4.4.1 release in FreeBSD (didn't test the 4.4.2 version on FreeBSD)
Previous Comments:
------------------------------------------------------------------------
[2006-02-23 17:46:38] [EMAIL PROTECTED]
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2006-02-23 17:25:37] capile at tcdesign dot com dot br
Description:
------------
The TTF functions like imagettfbbox, imagettftext do not work.
imagettfbbox return weird results and imagettftext does not render
anything.
Everything worked fine for PHP-4.3.10 (expected result). The setup was
made with the bundled GD and native ttf support.
Reproduce code:
---------------
<?php print_r(imagettfbbox ( '9', '0', 'garamond.ttf', 'Sample text'));
?>
Expected result:
----------------
Array
(
[0] => -1
[1] => 3
[2] => 49
[3] => 3
[4] => 49
[5] => -9
[6] => -1
[7] => -9
)
Actual result:
--------------
Array
(
[0] => 1
[1] => 11
[2] => -1073761736
[3] => 1083817944
[4] => 1083820576
[5] => 1083820576
[6] => -1073761720
[7] => 1083048044
)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36498&edit=1