Red Hat Bugzilla – Bug 140063
PHP GD extension does not appear to work with some addon modules, ex. jpgraph-1.17
Last modified: 2007-11-30 17:10:55 EST
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):
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
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).
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)