Bug 140063

Summary: PHP GD extension does not appear to work with some addon modules, ex. jpgraph-1.17
Product: [Fedora] Fedora Reporter: Norman R. Weathers <norman.r.weathers>
Component: phpAssignee: Joe Orton <jorton>
Status: CLOSED NOTABUG QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 3   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-11-19 16:26:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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)
Gecko/20041020

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):
php-4.3.9-3

How reproducible:
Always

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.
your.com/jpgraph-1.17beta2/src/Examples
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
/kickstart/WEB/www/html/libs/jpgraph/src/jpgraph.
php on line 341, referer: http://xxx.xxx.xxx/xxx/xxx.php

Expected Results:  A graph should display from the jpgraph examples
directory.

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)