#26729 [Fbk->NoF]: ImageTTFText - Segmentation Fault
| From: | sniper@php.net | Date: | Fri, 02 Jan 2004 01:47:18 +0000 |
| Subject: | #26729 [Fbk->NoF]: ImageTTFText - Segmentation Fault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-52662@lists.php.net to get a copy of this message | ||
ID: 26729
Updated by: sniper@php.net
Reported By: jury at hightech dot lv
-Status: Feedback
+Status: No Feedback
Bug Type: GD related
Operating System: Linux Slackware 2.4.20
PHP Version: 4.3.4
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2003-12-27 20:11:12] derick@php.net
Setting it to feedback until a backtrace is received.
------------------------------------------------------------------------
[2003-12-27 13:07:56] jury at hightech dot lv
Description:
------------
Apache child crashes after performing all code, on cleanup
In Error Log:
[Sat Dec 27 20:01:19 2003] [notice] child pid 7513 exit signal
Segmentation fault (11)
As I Understand - Bug is returned????
GDB Trace will create tomorow.
Reproduce code:
---------------
$image_path = "images/test.jpg";
$src_img = ImageCreateFromJPEG($image_path);
$src_w = ImageSX($src_img);
$src_h = ImageSY($src_img);
//
// create empty true color canvas, def bg is black
$txt_img = ImageCreateTrueColor($src_w,$src_h);
//
// define colors
$white = ImageColorAllocate ($txt_img, 255, 255, 255);
$black = ImageColorAllocate ($txt_img, 0, 0, 0);
//
// add your white text
$font = getcwd() . "/ariblk.ttf";
ImageTTFText ($txt_img, 25, 45, 20, 35, $white, $font, "Inbox");
//
// make black bg transparent
ImageColorTransparent($txt_img, $black);
//
//
ImageJPEG($src_img,'',100); // quality 70
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26729&edit=1