From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.3.9 PHP Bug Type: GD related Bug description: imagettfbbox returns wrong information
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 bug report at http://bugs.php.net/?id=30289&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30289&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30289&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30289&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30289&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30289&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30289&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30289&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30289&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30289&r=support Expected behavior: http://bugs.php.net/fix.php?id=30289&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30289&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30289&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30289&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30289&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30289&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30289&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30289&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30289&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30289&r=mysqlcfg
