Checking for PHP module dependencies

Submitted by charles on
I'm putting together an OpenLDAP authorisation system for a client's business web application, and wanted to test things out on my local windows machine. Well, I managed to get OpenLDAP working fine, but the authorisation using Apache has not been easy (in fact I'm still struggling with it ...). In the process, I've uninstalled and reinstalled php and apache a number of times to try and see where the problem is. This has in itself caused it's own issues, one of which was a php module not being loaded by apache.

The module in question was php_gettext.dll, and I just couldn't figure out why it was not being loaded, as it definitely was in the php extensions directory. I then came across a windows utility that checks windows modules dependencies: Dependency Walker. I quickly loaded up php_gettext.dll and it gave me an error indicating that iconv.dll was required, which I then copied from the php\dlls directory into the php directory, and the problem was solved. BTW, the versions I've installed are Apache 2.2.3 and PHP 4.4 (I'm using php5 on a linux box for now although am going to see about using both php4 and php5 on my windows box). Now back to LDAP...