php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24665 Problems with imagettftext()/imagettfbbox() in PHP 4.3.2+
Submitted: 2003-07-15 09:40 UTC Modified: 2003-07-20 10:41 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: daeken_9999 at yahoo dot com Assigned:
Status: No Feedback Package: GD related
PHP Version: 4.3.2 OS: Debian GNU/Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: daeken_9999 at yahoo dot com
New email:
PHP Version: OS:

 

 [2003-07-15 09:40 UTC] daeken_9999 at yahoo dot com
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)
}

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-15 23:04 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

And if that doesn't compile out-of-the-box (without any hacks by you) then please tell us WHAt does not work.

And it would help a lot if we knew what your configure line is like.

 [2003-07-20 10:41 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 05:01:27 2024 UTC