From: olga at bluebytes dot com
Operating system: Linux
PHP version: 4.3.3
PHP Bug Type: GD related
Bug description: ImageTTFText and ImageTTFBox don't work and return wierd values

ImageTTFText doesn't output any characters. If there's anything else in
the image, the rest will be fine; if the text string is the only thing,
the image will be blank.
Trying to figure out what's wrong, I took a look at the return values from
ImageTTFText as well as ImageTTFBox. They both produce huge values, i.e.
Array ( [0] => 138323388 [1] => 11 [2] => -1073754136 [3] => 1076636124
[4] => 138611764 [5] => 138323484 [6] => 11 [7] => 0 )

The values DO NOT depend on the font used. Furthermore, they are different
each time I load the page for the SAME font
([url][/url] shows values for "Hello world" in

Reproduce code:
//header("Content-type: image/jpeg");
$im = imagecreate(400,30);
$white = imagecolorallocate($im, 255,255,255);
$black = imagecolorallocate($im, 0,0,0);

// Replace path by your own font path
$result = imagettftext($im, 12, 0, 6, 20, $black,
"/home/blunoise/fonts/arial.ttf", "Hello world");
$bbox=imagettfbbox (12, 0, "/home/blunoise/fonts/arial.ttf", "Hello


Expected result:
A jpeg saying "Hello world"

Edit bug report at [url][/url]
Try a CVS snapshot (php4): [url][/url]
Try a CVS snapshot (php5): [url][/url]
Fixed in CVS: [url][/url]
Fixed in release: [url][/url]
Need backtrace: [url][/url]
Try newer version: [url][/url]
Not developer issue: [url][/url]
Expected behavior: [url][/url]
Not enough info: [url][/url]
Submitted twice: [url][/url]
register_globals: [url][/url]
PHP 3 support discontinued: [url][/url]
Daylight Savings: [url][/url]
IIS Stability: [url][/url]
Install GNU Sed: [url][/url]
Floating point limitations: [url][/url]