|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2007-06-15 17:05 UTC] oliviapurvis at yahoo dot com
Description: ------------ I'm running PHP 5.2.3, Apache 2.0, ImageMagick 6.3.0 10/18/06 Q16 and imagick 2.0.0a3. When I run the example script 'captcha.php' provided by the source package, apache gives a segfault. The log says: child pid 32609 exit signal Segmentation fault (11) Reproduce code: --------------- captcha.php in the /example folder of the source package. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 05:00:01 2025 UTC |
I upgraded to the CVS version and ran captcha.php. There is no segfault. But I get this error: PHP Fatal error: Uncaught exception 'ImagickException' with message 'unable to read font 'Helvetica Regular'' in /home/site/www/captcha.php:31 Stack trace: #0 /home/site/www/captcha.php(31): Imagick->annotateimage(Object(ImagickDraw), 4, 20, 0, 'H7RBAT') #1 {main} thrown in /home/site/www/captcha.php on line 31 If I comment out the line: $ImagickDraw->setFont( 'Helvetica Regular' ); and run the script, I get this error: PHP Fatal error: Uncaught exception 'ImagickDrawException' with message 'Font needs to be set before annotating an image' in /home/site/www/captcha.php:28 Stack trace: #0 /home/site/www/captcha.php(28): Imagick->annotateimage(Object(ImagickDraw), 4, 20, 0, 'BT927Z') #1 {main} thrown in /home/site/www/captcha.php on line 28 Does that mean that I must set a font before I can annotate? Using the MagickWand extension by ImageMagick, I can annotate without setting a font.