Page 1 of 1

Unable to load extension: php_exif, WAMP box

Posted: Thu Aug 12, 2004 11:12 am
by Vanbru
Hello,
I've searched the forum and didn't find an adequate topic/solution so here it is:

I'm running PHP5/APACHE2 on a WINXP box and I'm unable to load many of the extensions bundled in the php zip file.

I had the same problem many of us had with the MySQL extension, searched the web and saw I had to use another dll to make it work. That's ok, thought my problems were over.

Now, I'm trying to load the php_exif.dll and PHP won't load it.
The PHP.INI directive is well set, the files are actually there, I even tried copying php_exif.dll to many other locations and still nothing.

To see if that was just a php_exif.dll problem, I uncommented all the other extensions and concluded that some of them load ok (mysql, gd2) but most of them do not, including the one I currently need, the exif one.

The typical tips of copying things to the system32 directory or to the same folder as php.exe don't work. I've done that with no results.

Is there a mercifull soul who has had the same problem and found a solution? I'm about to smash something, really. :?

Thanks in advance.

Posted: Thu Aug 12, 2004 11:21 am
by feyd
opening php_exif.dll in my debugger, it requires:

kernel32.dll - found in windows root
msvcrt.dll - normally found in windows system32
ntdll.dll - normally found in windows system32

php5ts.dll - installed with php5
php_exif.dll - self references
php_mbstring.dll - extensions directory

---------------

php_mbstring.dll requires:
kernel32.dll - found in windows root
msvcrt.dll - normally found in windows system32
ntdll.dll - normally found in windows system32

php5ts.dll - installed with php5
php_mbstring.dll - self references

Posted: Thu Aug 12, 2004 11:45 am
by redmonkey
I don't have a PHP5 enabled win32 box near at the moment to try but....

I seem to remember I had a similar problem with one of the PHP5 beta releases, I got round it by loading the mbstring module first i.e. my php.ini file looks like...

extension=php_mbstring.dll
extension=php_exif.dll

Note the mbstring.dll comes above the exif.dll

Posted: Thu Aug 12, 2004 11:54 am
by Vanbru
Thanks feyd and redmonkey for the quick reply.

I have all those files you found references to.
Fact is I can load php_mbstring without any problem but the exif extension still doesn't load.

I suspected the loading order could be the problem and moved the exif extension so it would get loaded after mbstring but the error still appears when restarting apache.

Like I did before with the php_exif.dll, I copied the mbstring dll to several locations (system32, php root, apache, etc...) just in case it would affect the loading of the exif dll but it didn't help.

Somehow I've got this strange feeling the Exif DLL is corrupted or something like that.