From: apz@iname.com
Operating system: Windows 2000
PHP version: 4.1.1
PHP Bug Type: GD related
Bug description: ImageTTFText produces strange Warning
Hi.
I can't use ImageTTFText with PHP_GD2.DLL (on Windows 2000).
The Following Code works on GD1 with 4.1.1 and also GD2 with 4.0.6 (both
downloadable compilations) ...
$im = ImageCreate (300, 300);
$color = ImageColorAllocate ($im, 255,135,000);
$black = ImageColorAllocate ($im, 000,000,000);
$white = ImageColorAllocate ($im, 255,255,255);
ImageFill ($im, 0,0, $color);
ImageTTFText ($im, 9, 0, 10, 200, $white, "\WINNT\Fonts\verdana.ttf",
"Hello");
ImagePNG ($im);
And produces a Warning like this.
"Warning: & in f:\http\test\php\testat.php on line 9"
The five chars following the "Warning:" are different depending at least on
the give font-path (IMHO).
I tried varios combinations: Path seperation with "/" and "\", several
locations: Absolute paths, fonts beeing in the script directory. apache
directory, php directory, with and without leading drive-letter.
GD2 is the only extension included.
Win2KSP2(German)/Apache 1.3.22/PHP 4.1.1
+++adam
--
Edit bug report at: http://bugs.php.net/?id=14876&edit=1