ID: 7912
Updated by: sniper
Reported By: aaron@crustal.ucsb.edu
Status: Feedback
Bug Type: GD related
Assigned To:
Comments:
1. Is the GD mentioned in phpinfo() output?
2. What is the exact error message you get with
imagetypes() ?
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2000-11-21 18:24:23] aaron@crustal.ucsb.edu
I am starting to play around with images and found in the docs that the
imagetypes() function didn't work in php 4.0.0. So I decided to upgrade to 4.0.3pl1 and add in support for more goodies. I used the following configure line:
./configure --with-mysql=/local/apps/mysql --with-apxs=/opt/apache/bin/apxs --with-gd=shared,/local --with-jpeg-dir=/local --with-ttf=/local --with-t1lib=/local --with-zlib=/local
It is not clear from the configure --help output what the paths are
supposed to point to, but /local on my system is also /usr/local,
all the above items were installed with default paths, so libs are
in /local/lib and includes are in /local/include. I configured gd-1.8.3 with
all its suggested goodies. The configure and build all along seemed to go well. The same for the php configure, make and make install. But when I try imagetypes(), it still says that imagetypes is undefined.
I tried creating and outputting some imagefiles. I can make all the
function calls, but no files are created, either to the browser or to my unix filesystem. The new version of php is definitely being used (restarted apache and looked at phpinfo() output). Is there a way I can tell if GD is installed correctly?
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7912
I got around the bug by changing --with-gd=shared,/local to --with-gd=/local.
I dont know if I needed to set a path somewhere else (LD_LIBRARY_PATH?) to
get it to read the shared version. I am not sure what benefits I derive
from the shared, so I can probably get by without it for now.
--
Cheers... Aaron