From: a dot schilder at gmx dot net Operating system: Windows XP PHP version: 5.3.0RC3 PHP Bug Type: GD related Bug description: ImageFTBBox() differs from previous versions for texts with new lines
Description: ------------ The results of ImageFTBBox() differs from previous versions for texts with new lines. The image creation works for PHP 5.04 to 5.2.9 (5.2.10 not tested). but with PHP 5.3RC3 the results are very strange... Reproduce code: --------------- <?php header('Content-Type: text/plain'); $font_file = './arial.ttf'; $box = ImageFTBBox(13, 0, $font_file, "Text without line-break"); echo 'Top without line-break: ' . $box[7] . "\n"; $box = ImageFTBBox(13, 0, $font_file, "Text with\nline-break"); echo 'Top with line-break: ' . $box[7] . "\n"; ?> Expected result: ---------------- Top without line-break: -14 Top with line-break: -14 (result with PHP 5.2.9 and previous versions) Actual result: -------------- Top without line-break: -14 Top with line-break: -36 -- Edit bug report at http://bugs.php.net/?id=48555&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48555&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48555&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48555&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48555&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48555&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48555&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48555&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48555&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48555&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48555&r=support Expected behavior: http://bugs.php.net/fix.php?id=48555&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48555&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48555&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48555&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48555&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48555&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48555&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48555&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48555&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48555&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48555&r=mysqlcfg