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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 19:01:30 2024 UTC