php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44524 Calls to imagettftext crash
Submitted: 2008-03-24 22:22 UTC Modified: 2008-03-25 17:36 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: david dot schneider at spaboom dot com Assigned:
Status: Not a bug Package: GD related
PHP Version: 5.2.5 OS: OS X
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: david dot schneider at spaboom dot com
New email:
PHP Version: OS:

 

 [2008-03-24 22:22 UTC] david dot schneider at spaboom dot com
Description:
------------
Calls to imagettftext will always fail with no error on Leopard 10.5.2 when run under Apache 2 (bundled GD library).

The Apache error log reveals:
Break on __THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__() to debug.
[Mon Mar 24 16:12:05 2008] [notice] child pid 74505 exit signal Trace/BPT trap (5)

It is important to note that the code works as expected in the CLI version of PHP.

Reproduce code:
---------------
<?php
header("Content-type: image/png");
$im = imagecreatetruecolor(400, 30);
$white = imagecolorallocate($im, 255, 255, 255);
$black = imagecolorallocate($im, 0, 0, 0);
imagefilledrectangle($im, 0, 0, 399, 29, $black);
$font = '/[path to font]/Verdana.ttf'; // any font
imagettftext ($im, 10, 0, 10, 10, $white, $font, 'My Text');
imagepng($im);
imagedestroy($im);
?>

Expected result:
----------------
A black box with the words "My Text" in white letters

Actual result:
--------------
No output is produced

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-25 17:36 UTC] david dot schneider at spaboom dot com
Not a problem with PHP
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 22:01:27 2024 UTC