php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3374 ImageGIF() ImagePNG() fail with GD 1.3 and Apache 1.3.9
Submitted: 2000-02-01 12:42 UTC Modified: 2000-02-01 14:43 UTC
From: mrisser at linuxstart dot com Assigned:
Status: Closed Package: Other
PHP Version: 3.0.14 OS: Red Hat 6.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mrisser at linuxstart dot com
New email:
PHP Version: OS:

 

 [2000-02-01 12:42 UTC] mrisser at linuxstart dot com
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);
?>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-02-01 14:43 UTC] markonen at cvs dot php dot net
The autoconfig functionality regarding the GD library will be revamped in 3.0.15. You are most probably having a version conflict within your gd library and include files, and PHP is failing to detect this. Please email me your ./configure output to markonen@php.net if you require further assistance. 
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 05:01:33 2025 UTC