php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20771 imagettftext() fails without errors
Submitted: 2002-12-02 14:48 UTC Modified: 2002-12-04 15:32 UTC
From: marc at resiteit dot com Assigned:
Status: Closed Package: GD related
PHP Version: 4.2.2 OS: RH 8.0
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: marc at resiteit dot com
New email:
PHP Version: OS:

 

 [2002-12-02 14:48 UTC] marc at resiteit dot com
This works on 4.0.4pl1 and 4.0.5 but not on my new RH 8.0 build with 4.4.2:

phpinfo() is at http://www.resiteit.com/phpinfo.php
 
$im = imagecreate (400, 30);
$black = imagecolorallocate ($im, 0, 0, 0);
$white = imagecolorallocate ($im, 255, 255, 255);
imagettftext ($im, 20, 0, 10, 20, $white, "../fonts/arialbd.ttf", "Testing...Omega: Ω");
imagepng ($im);
imagedestroy ($im);

On the new build, I just get the black bar.  Unfortunately no errors.  Interesting to note that the function doesn't return the bounding box array either.

Any ideas?  -- Thanks!

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-02 14:49 UTC] derick@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip
 [2002-12-03 15:50 UTC] marc at resiteit dot com
I was afraid you'd say that.  I'll have to try that on a dev box...  I'm trying to stick with Redhat up2date on my live servers.  Do you think it's a problem with 4.2.2 ?
 [2002-12-04 15:32 UTC] iliaa@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

This bug was fixed in latest CVS as was indicated by Derick, please do not re-open it unless it does not work in latest CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 17 14:01:27 2024 UTC