php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26729 ImageTTFText - Segmentation Fault
Submitted: 2003-12-27 13:07 UTC Modified: 2004-01-01 20:47 UTC
From: jury at hightech dot lv Assigned:
Status: No Feedback Package: GD related
PHP Version: 4.3.4 OS: Linux Slackware 2.4.20
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jury at hightech dot lv
New email:
PHP Version: OS:

 

 [2003-12-27 13:07 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-27 20:11 UTC] derick@php.net
Setting it to feedback until a backtrace is received.
 [2004-01-01 20:47 UTC] sniper@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 15:01:32 2024 UTC