Bug 140063 - PHP GD extension does not appear to work with some addon modules, ex. jpgraph-1.17
Summary: PHP GD extension does not appear to work with some addon modules, ex. jpgraph...
Alias: None
Product: Fedora
Classification: Fedora
Component: php (Show other bugs)
(Show other bugs)
Version: 3
Hardware: All Linux
Target Milestone: ---
Assignee: Joe Orton
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2004-11-19 16:10 UTC by Norman R. Weathers
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-11-19 16:26:24 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Norman R. Weathers 2004-11-19 16:10:45 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.3)

Description of problem:
Installing external class jpgraph1.17 broken when using php4 in Fedora
Core3.  This worked with Fedora Core2.  One can load the jpgraph
libraries and use the Examples provided and see an instant failure
complaining about GD possibly not being installed.  I checked the
phpinfo for that installation, and it showed gd was configured
(--with-gd=shared).  This is the same configuration as the PHP that
comes with Fedora Core 2.

The current work around at the moment is to remove php-4.3.9 in the
Core3 install and reload the php-4.3.4 packages that came with Core2,
then create a link for libcurl.so.2 (bad, I know, but I had to get
this working again fast).

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.  Install something that uses GD, such as jpgraph-1.17 (either beta
or beta2 versions do the same thing).
2.  Point your web browser to the correct Examples directory (ex.
/var/www/html/jpgraph-1.17beta2/src/Examples on the server.)  ex.
3.  Choose any example.  They all fail, if I remember correctly.

Actual Results:  An error message is reported to the screen (forgot to
write it down, but it complains about GD not being compiled into this
version of PHP), and the server error log has the following error
message (URL and IP's removed):

PHP Notice:  Use of undefined constant IMG_PNG - assumed 'IMG_PNG' in
php on line 341, referer: http://xxx.xxx.xxx/xxx/xxx.php

Expected Results:  A graph should display from the jpgraph examples

Additional info:

This exact system was working in Fedora Core 2.  I have mad the system
work temporarily by putting the older Core 2 php release onto this
node that  I am testing with and creating a link from libcurl.so.3 to
libcurl.so.2 (required for php-4.3.4 to work).

Comment 1 Joe Orton 2004-11-19 16:26:24 UTC
Thanks for the report. 

The gd extension was split out into a separate subpackage for FC3, you
have to install the "php-gd" package to restore the GD extension. 
(This is covered in the FC3 release notes)

Note You need to log in before you can comment on or make changes to this bug.