Bug #3375: ImageGIF() ImagePNG() fail with GD 1.3 and Apache 1.3.9
| From: | mrisser at linuxstart dot com | Date: | Tue, 01 Feb 2000 17:44:33 +0000 |
| Subject: | Bug #3375: ImageGIF() ImagePNG() fail with GD 1.3 and Apache 1.3.9 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-15115@lists.php.net to get a copy of this message | ||
From: mrisser@linuxstart.com
Operating system: Red Hat 6.1
PHP version: 3.0.14
PHP Bug Type: Feedback Needed
Bug description: ImageGIF() ImagePNG() fail with GD 1.3 and Apache 1.3.9
PHP 3.0.14 fails to create an image using GD 1.3 and Apache 1.3.9. imageGIF() Returns only a missing
graphic icon
imagePNG() Returns "Call to unsupported or undefined function imagepng()
Scripts:
<?PHP
$white = ImageColorAllocate($img, 255, 255, 255);
$blue = ImageColorAllocate($img, 0, 0, 255);
$red = ImageColorAllocate($img, 255, 0, 0);
$black = ImageColorAllocate($img, 0, 0, 0);
ImageFill($img, 0, 0, $black);
ImageDashedLine($img, 0, 0, 500, 500, $white);
ImagePNG($img,"images/graph1.php3");
echo "<BR><IMG SRC='images/graph1.php3?text'>";
ImageDestroy($img);
?>
and:
<?PHP
$img = ImageCreate(500, 500);
$white = ImageColorAllocate($img, 255, 255, 255);
$blue = ImageColorAllocate($img, 0, 0, 255);
$red = ImageColorAllocate($img, 255, 0, 0);
$black = ImageColorAllocate($img, 0, 0, 0);
ImageFill($img, 0, 0, $black);
ImageDashedLine($img, 0, 0, 500, 500, $white);
ImagePNG($img);
ImageDestroy($img);
?>