Re: mhash functions for my windows apache development server



Paul Furman wrote:


Hmm, I did already have some mhash dlls in my php folder:
C:\PHP\libmhash.dll
C:\PHP\extensions\php_mhash.dll
so I uncommented this line in my.ini: [should read php.ini]
extension=php_mhash.dll
...but restarting the apache service I get an error saying it ccan't find php_mhash.dll THREE TIMES.

Googling the exact error:
unknown(): Unable to load dynamic library './php_mhash.dll' - The specified module could not be found.
I found this suggestion:

Causes

The most common cause may be a misconfigured extension_dir setting in your php.ini.

Hmm, it simply reads:
extension_dir = "./"

so I tried:
extension_dir = "C:/PHP/extensions"
.... same triple error message...

You may also encounter the above errors if you enable all the extensions in PHP. The errors are generally caused by misconfigured extensions. Some extensions (e.g. Oracle) require additional setup, software, and support DLLs, which come from outside the main PHP installer.

Maybe the phpMyAdmin added a funny file? Nah, that just sits in it's own folder.

You may have out-of-date extension DLLs in your extensions directory.

It's installed from a full package named php-4.3.4-Win32.zip dated 12-16-06 (pretty recent).

Some extensions may also have bugs that are causing warnings.
Solutions

You must configure extension_dir correctly to point to the folder with the DLL files.

Disable all unused extensions. You can easily disable an extension by commenting-out the corresponding line from your php.ini file. (php.ini may be located in c:\program files\php, c:\windows, c:\php, etc.) Comment-out lines by placing a semi-colon at the beginning of the line.

Most are disabled by default.

If there are still warnings after unused extensions are disabled, then you must read the documentation for each enabled extension, and install and configure any necessary third-party software.

If your DLLs are out-of-date, make sure to download and install the latest Windows binary zip packages from the PHP downloads page.

If that fails, try searching for bugs in bugs.php.net for the error message you encounter.

Ah Ha!
http://bugs.php.net/bug.php?id=21280
....
Did you copy the dlls from the dll/ subdir to the windows system dir?
....
User reported that this fixed it.

SOLVED!
.



Relevant Pages

  • Re: Platform builder executable wont run in Windows explorer
    ... You are right that those dlls are in .\Windows folder on my target. ... just the EXE (the other DLLs are almost certainly built into the device ROM ...
    (microsoft.public.windowsce.embedded)
  • Re: essential OS/2
    ... I had to spend time identifying the missing modules and retrieving them from another partition. ... Now I move those program specific dlls back to the folders where the program was installed. ... I am using TVFS and I add the location of these dlls to the list of folders that I append to libpath virtual folder that TVFS creates. ... I have to run which & find duplicated on the libpath to control the common named dlls. ...
    (comp.os.os2.misc)
  • Re: Deployment in VS.NET 2005
    ... You'll see several DLLs in the appropiate directories after you do that. ... asp.net faq: http://asp.net.do/faq/ ... or if you use the Web Application Projects add-in for VS 2005. ... Then, after I rebuld everything successfully, there are no DLLs in my Bin folder. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Problem running vc++ program
    ... Documents folder or a subfolder of My Documents. ... install. ... There is a class of DLLs called "redistributable DLLs" that form a consistent set. ... I have created a program for my friend using VC++. ...
    (microsoft.public.vc.mfc)
  • Code-signing a .NET COM Add-in with a C++ shim
    ... I'm using the "shim" solution as described on MSDN. ... ..NET DLLs are strong named. ... all 12 of the .NET projects, the DLL in bin/Release folder is signed. ...
    (microsoft.public.office.developer.com.add_ins)