PHP 4.0 Bug #1979: ImageTTFText() causes script to terminate
| From: | daniel-watkins at usa dot net | Date: | Fri, 06 Aug 1999 05:51:24 +0000 |
| Subject: | PHP 4.0 Bug #1979: ImageTTFText() causes script to terminate | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-9587@lists.php.net to get a copy of this message | ||
From: daniel-watkins@usa.net
Operating system: redhat 5.1/ 2.0.36
PHP version: 4.0 Latest CVS (06/08/1999)
PHP Bug Type: Misbehaving function
Bug description: ImageTTFText() causes script to terminate
The following script worked fine in php-4.0b1
, changing back to gdttf.c v1.2 doesnt help.
<?php
header("Content-type: image/gif");
$string="Foobar";
$font="/home/daniel/public_html/fonts/comic.ttf";
$im = imagecreatefromgif("images/button.gif");
$white = ImageColorAllocate($im, 255, 255, 255);
$black = ImageColorAllocate($im, 0, 0, 0);
ImageTTFText($im,20,0,17,27, $black, $font, $string);
ImageTTFText($im,20,0,15,25, $white, $font, $string);
ImageGif($im);
ImageDestroy($im);
?>
Im using freetype-1.2-6
./configure --with-apache=/usr/local/src/webserver/apache_1.3.6 --with-oracle --with-oci8 --with-gd
--with-ttf
It compiles fine, phpinfo() confirms that ttf support is compiled in.