|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-03-25 17:36 UTC] david dot schneider at spaboom dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 14:00:01 2025 UTC |
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