Skip Menu |

This queue is for tickets about the GDTextUtil CPAN distribution.

Report information
The Basics
Id: 1919
Status: resolved
Priority: 0/
Queue: GDTextUtil

People
Owner: mverb [...] cpan.org
Requestors: matthias [...] volltext.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.83
Fixed in: (no value)



Subject: illegal division by zero at GD/Text.pm line 507
perl, is v5.8.0 built from source Linux is a custom built 2.4.19 with debian woody the machine is a dual pIII 1133mhz the problem occurs only when the script is run as cgi (mod_perl 1.27, apache 1.3.27) regards m ----------->8------------------------------------------- #!/usr/bin/perl -w use strict; use GD::Graph::lines; use GD::Text; print "content-type:image/png\n\n"; use vars qw($graph); undef($graph); my $fontdir = "/usr/local/share/fonts"; my @x = (0 .. 4); my @y = (0 .. 4); $graph = GD::Graph::lines->new(800, 500); $graph->set( x_label => 'x label', title => "title"); GD::Text->font_path($fontdir); $graph->set_values_font("trebuc.ttf", 10); $graph->set_title_font("trebuc.ttf", 20); $graph->set_x_axis_font("trebuc.ttf", 10); $graph->set_y_axis_font("trebuc.ttf", 10); my @draw = (\@x,\@y); my $gd = $graph->plot(\@draw); print $gd->png; ----------->8-------------------------------------------
[guest - Tue Jan 7 07:15:10 2003]: Show quoted text
> perl, is v5.8.0 built from source
I think this problem is related to the breakage of the POSIX::isprint() and related functions in 5.8.0 (GRRRR). This should be fixed in the latest release (0.85). Martien