ID: 44524 User updated by: david dot schneider at spaboom dot com Reported By: david dot schneider at spaboom dot com -Status: Open +Status: Bogus Bug Type: GD related Operating System: OS X PHP Version: 5.2.5 New Comment:
Not a problem with PHP Previous Comments: ------------------------------------------------------------------------ [2008-03-24 22:22:35] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44524&edit=1