Bug #8711 [Com]: When I call the the ImageTTFText Function I receive a Segmentation Fault

From: Date: Thu, 21 Jan 2021 06:09:41 +0000
Subject: Bug #8711 [Com]: When I call the the ImageTTFText Function I receive a Segmentation Fault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-231674@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=8711&edit=1 ID: 8711 Comment by: jeanmitchell191 at gmail dot com Reported by: gafain at fineware dot it Summary: When I call the the ImageTTFText Function I receive a Segmentation Fault Status: Closed Type: Bug Package: GD related Operating System: Linux Mandrake 7.2 PHP Version: 4.0.4pl1 Block user comment: N Private report: N New Comment: Did you have a fix on this issue? Facing same issue but no response from anyone and couldn't find this topic troubleshooting in google. https://www.krogereschedule.us/ Previous Comments: ------------------------------------------------------------------------ [2004-10-06 21:42:45] jason at axsystech dot net I have the same problem. ------------------------------------------------------------------------ [2001-06-27 22:34:37] sniper@php.net No feedback. Can't reproduce. ------------------------------------------------------------------------ [2001-06-03 06:59:38] sniper@php.net Please try the latest release candidate: http://www.php.net/~andi/php-4.0.6RC2.tar.gz Also, add a FULL example script which can be just copy/pasted and run to reproduce this. Also a GDB backtrace would be useful. Here are intructions how to generate one: http://www.php.net/bugs-generating-backtrace.php --Jani ------------------------------------------------------------------------ [2001-01-15 09:12:27] gafain at fineware dot it Header("Content-type: image/gif"); $dims=ImageTTFBBox($size,0,$fontname,$text); $w=$dims[4]+$dims[6]; $h=-($dims[5]+$dims[3]); $im = imagecreate($w,$h); $bg = splitColor($background); $fg = splitColor($color); $back= ImageColorAllocate($im, $bg[0],$bg[1],$bg[2]); $fore= ImageColorAllocate($im, $fg[0],$fg[1],$fg[2]); ImageFilledRectangle($im,0,0,$w,$h,$back); ImageTTFText($im, $size, 0, -1 ,$h-2 , $fore, $fontname, $text); ImageGif($im); ImageDestroy($im); ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=8711&edit=1

« previous php.bugs (#231674) next »