[PHP4BETA] Problems with TTF/freetype?
| From: | Karl Pielorz | Date: | Mon, 24 May 1999 15:57:29 +0000 |
| Subject: | [PHP4BETA] Problems with TTF/freetype? | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-1013@lists.php.net to get a copy of this message | ||
Hi,
I've just got round to running some scripts which use GD/TTF to PHP4/Zend...
I've seen the biggest speed increase in this area so far (especially for pages
with lots of PHP generated GIF's etc.), and I've hit a problem...
These two lines essentially do the same thing,
imagestring( $Image, 3, 2, 0, "Hello", $Black );
ImageTTFText( $Image, 14, 0, 11, 13, $DGrey, "tahoma.ttf", "Hello");
The first (imagestring) works under PHP4 and PHP3... The second (ImageTTFText)
runs fine under PHP3, but causes PHP4 to spit out (in the apache-error.log):
"
[Mon May 24 16:46:09 1999] [notice] child pid 75189 exit signal Segmentation
fault (11)
[Mon May 24 16:46:09 1999] [notice] child pid 75179 exit signal Segmentation
fault (11)
[Mon May 24 16:46:09 1999] [notice] child pid 75157 exit signal Segmentation
fault (11)
"
Has anyone run PHP4/Zend with Freetype?
I'm using FreeBSD 4.0-Current, gd 1.3 and freetype 1.2. I checked the output
of ./configure for PHP4, and it seems to be finding, and linking with the
freetype libraries etc. OK.
As I've already said, I'm not brilliant at debugging etc. (I just about know
my way around gdb) if someone can point me in the right direction? :-)
-Karl
--
PHP 4 Beta