|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-04-21 00:44 UTC] doormat at sequence-omega dot net
Description: ------------ Using the JPGraph library, when any graphs are created at the same time, and they use TrueType fonts, apache will crash. Switching away from the use of TrueType fonts helps, but occasional crashes still happen. The developer of JPGraph said the problem was in the underlying PHP implementation (http://jpgraph.fan-atics.com/viewtopic.php?t=1752) so I'd thought I'd file a bug report to see if ya'll could figure it out. Reproduce code: --------------- Too long to post... download sample code from http://www.aditus.nu/jpgraph/ and put multiple graphs (especially ones that use TTFs) on one page and load it up and apache should crash. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 14:00:01 2025 UTC |
here is a simple reproduction script. the crash only occurs when writing the image to file, and is reproducible 100% of the time. <?php $string = "i crash."; $font = 4; $width = ImageFontWidth($font) * strlen($string); $height = ImageFontHeight($font); $im = @imagecreate ($width,$height); $background_color = imagecolorallocate($im, 255, 255, 255); $text_color = imagecolorallocate($im, 0, 0,0); imagestring($im, $font, 0, 0, $string, $text_color); imagejpeg($im,'test_sample.jpg'); ?>