[PHP-DEV] Bug #498: ImageTTFBBox returns negative values From: slip <email protected>
Date: 07/02/98

From: slip <email protected>
Operating system: Solaris 2.5.1
PHP version: 3.0 Latest CVS
PHP Bug Type: Misbehaving function
Bug description:
I tried the new function ImageTTFBBox out and got some
negative X and Y values is that supposed to be so?

<?php
$test=ImageTTFBBox(20,0,"Arialn.ttf","Test");
?>

Result:
$test[0] is -1 (UL, X)
$test[1] is -1 (UL, Y)
$test[2] is 30 (UR, X)
$test[3] is -1 (UR, Y)
$test[4] is 30 (LR, X)
$test[5] is -15 (LR, Y)
$test[6] is -1 (LL, X)
$test[7] is -15 (LL, Y)

(UL=Upper Left corner, and so on)

Here's my configure line:
./configure --with-apache=/extern2/src/apache_1.3.0 --with-gd=/usr/local
--with-mysql --enable-debug=no --enable-track-vars=yes --enable-memory-limit=yes

Regards,
Stefan Livieratos