tags:

views:

15

answers:

2

I have downloaded a dynamic library from the location: http://downloads.php.net/pierre/.

The specific file I downloaded is: php_http-5.3-nts-svn20091125-vc6-x86.zip.

I have copied the file (php_http.dll) into the folder: C:\wamp\bin\php\php5.3.0\ext.

In php.ini, I added the line: extension=php_http.dll.

But I am getting the warning consisting of message: "PHP Startup: Unable to load dynamic library".

Do I need to do anything else to have this module enabled?

+1  A: 

Maybe it's for a version other than your PHP's?

aularon
My current version is 5.3 and I believe this extension is also for the same version.
Gunner
PHP in Wampserver is a thread safe version (you can check it in phpinfo), so you need this file: http://downloads.php.net/pierre/php_http-5.3-svn20091125-vc6-x86.zipNot sure if that will solve the issue though.
Mchl
Thanks, that did the trick :)
Gunner
A: 

There are several "attributes" that must be in agreement in both the php core and the extension module. You can find all those values for the php core in the output of phpinfo()

  • the API version (e.g. 20090626 for the current 5.3.3 version)
  • is it a thread-safe (ts) or a non-thread-safe (nts) build <- this one's apparently your problem.
  • is it a debug build
  • did the compiler used to build a) the core and b) the module produce compatible code?

An extension module dll can also have additional dependencies that may or may not be fulfilled, e.g. another .dll is referenced but not present. Amongst other tools you can use ProcMon to monitor which .dlls are looked for and which are un-/successfully loaded.

VolkerK