#30289 [Opn->Fbk]: imagettfbbox returns wrong information

From: Date: Thu, 30 Sep 2004 20:43:16 +0000
Subject: #30289 [Opn->Fbk]: imagettfbbox returns wrong information
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-66953@lists.php.net to get a copy of this message
ID: 30289 Updated by: iliaa@php.net Reported By: cipri@php.net -Status: Open +Status: Feedback Bug Type: GD related Operating System: Linux PHP Version: 4.3.9 New Comment: Works fine with 4.3.9 i got here using bundled libgd, are you using bundled lib gd or the external one? What GD related configuration flags do you have enabled? Previous Comments: ------------------------------------------------------------------------ [2004-09-30 11:12:33] cipri@php.net Description: ------------ When running imagettfbbox() against a font, the returned values are way off, in the billions or negative billions. Reproduce code: --------------- print_r(imagettfbbox(9, 0, "HelvCondBlack.TTF", 'HOME')); HelvCondBlack.TTF is available for download at http://www.campai.nl/fonttest/HelvCondBlack.TTF Expected result: ---------------- Array ( [0] => -1 [1] => -1 [2] => 21 [3] => -1 [4] => 21 [5] => -8 [6] => -1 [7] => -8 ) Actual result: -------------- Array ( [0] => 1080490528 [1] => 153840736 [2] => -1073754904 [3] => 1081352559 [4] => 1080490544 [5] => 1080487896 [6] => -1073754872 [7] => 1079718188 ) (The 2nd item, [1], will fluctuate mildly between requests) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30289&edit=1

« previous php.bugs (#66953) next »