I have a XAMPP installation on a Windows machine and wanted to install Composer. After downloading it from getcomposer.org I started the installer. After the step where you have to point it to php.exe, I got many error messages along the lines:
Unable to load dynamic library '\software\xampp-portable\php\ext\php_bz2.dll'
I probably got around 20 error popups. The first thing I did was to check whether the library was in there. And it was. Only then did I notice that the path shown didn’t include the drive name. Since I had just shown the installer where php was installed, I thought that it was probably reading the path from the associated php.ini and maybe the path wasn’t complete there. And I was right:
; Directory in which the loadable extensions (modules) reside. ; http://php.net/extension-dir ; extension_dir = "./" ; On windows: extension_dir = "\software\xampp-portable\php\ext"
After modifying it to:
extension_dir = "d:\software\xampp-portable\php\ext"
And the errors were gone !