From:             daeken_9999 at yahoo dot com
Operating system: Debian GNU/Linux
PHP version:      4.3.2
PHP Bug Type:     GD related
Bug description:  Problems with imagettftext()/imagettfbbox() in PHP 4.3.2+

Description:
------------
When using PHP 4.3.2's internal GD library with the with or without the
FreeType/FreeType2 functions, imagettftext() and imagettfbbox() are not
compiled into PHP.  When I forced it to be compiled into PHP (by setting
the define in gd.c), the functions both operated very strangely, returning
coords in the millions, no matter what parameters were given to it.

Reproduce code:
---------------
<?php
$arr = imagettfbbox(20, 0, $font, $string);
var_dump($arr);
?>

Expected result:
----------------
Proper coordinates for the bounding box.

Actual result:
--------------
array(8) {
  [0]=>
  int(-1073758404)
  [1]=>
  int(1076848078)
  [2]=>
  int(1948291952)
  [3]=>
  int(1930279504)
  [4]=>
  int(-1073758404)
  [5]=>
  int(1077268252)
  [6]=>
  int(135248404)
  [7]=>
  int(135267020)
}

-- 
Edit bug report at http://bugs.php.net/?id=24665&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24665&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24665&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=24665&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24665&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24665&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24665&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24665&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24665&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24665&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24665&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24665&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24665&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24665&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24665&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24665&r=gnused

Reply via email to