Click to See Complete Forum and Search --> : Errors with php_zlib and php_gd


neilybod
12-10-2001, 12:00 PM
I am having trouble trying to get PHP to work with the GD library on two different dev platforms.

One is Win 2K, IIS 5, PHP 4.06
The other is Win 2K, Apache 1.3.2, PHP 4.06

PHP runs fine, until I try to enable GD.

in PHP.ini I have:
extension_dir = "c:/php/extensions/"
which is where the php dlls reside.

I have the following extensions uncommented in php.ini:
php_gd.dll
php_zlib.dll

When I restart the webserver I get the following 2 system error dialogs:

*** error 1: ***
Unable to load dynamic library './php_gd.dll' - The specified procedure could not be found.

*** error 2: ***
zlib: Unable to initialize module
Module compiled with debug=0, thread-safety=1 module API=20001214
PHP compiled with debug=0, thread-safety=1 module API=20001222
These options need to match

This is the *latest* PHP distribution from PHP.net

Can anyone solve this one for me?

Cheers
Neil

wmvdwerf
12-10-2001, 06:02 PM
Try :

extension_dir = "c:\php\extensions\"

Use backslash.

neilybod
12-11-2001, 05:21 AM
Thanks for this, but still no luck.

I don't think it is due to the DLLs not being found.
The error I get is
"The specified procedure could not be found"

whereas if I use:
extension_dir = "c:\wrongpath\"

The error is:
"The specified module could not be found"

Also, can anyone tell me where I can find libpng.dll, libjpg.dll and libgif.dll, and where do these need to be installed? Presumably either in C:\WINNT\SYSTEM32\ or C:\PHP

Cheers
Neil

neilybod
12-11-2001, 01:16 PM
I just rolled back to PHP 4.04 and everything works fine.

My guess is that php_gd.dll or php_zlib.dll which are supplied with the PHP 4.06 windows binary distribution are incorrectly compiled for 4.06.

SOLUTION: install 4.04 or recompile everything?

Neil