PHP Startup: Unable to load dynamic library ‘C:/wamp/path/to/php/ext/php_intl.dll’ – The specified module could not be found.
PHP says it can’t find extension php_intl.dll
, yet file “php_intl.dll” does exist in the specified location!
This is a very common issue, especially under PHP 5.5, and can easily be fixed…
To see why PHP cannot load extension php_intl.dll, open the command line, change to WAMP’s PHP directory, and test php_intl.dll’s dependencies:
C:
cd WampDeveloper\Components\Php
deplister.exe ext\php_intl.dll
This is a list of all the DLLs php_intl.dll
must load, before it can be loaded itself:
# Core PHP DLL php5ts.dll,OK # International Components for Unicode (ICU) libraries - Unicode and Globalization support icuuc51.dll,OK icuin51.dll,OK icuio51.dll,OK # Microsoft VC++ 2012 Runtime libraries - common functions required by C and C++ programs MSVCR110.dll,OK MSVCP110.dll,OK # Core Windows DLL KERNEL32.dll,OK
The “ICU” and/or the” VC++ Runtime” DLLs will not be found (displayed as “NOTFOUND” instead of “OK”) on the system with this issue.
And when php_intl.dll
is not able to find and load these dependencies, PHP outputs:
"The specified module could not be found."
Here is how to fix the issue and load php_intl.dll
:
1. Make sure the PHP directory path is included in the system’s PATH
environmental variable so this set of provided/included ICU DLLs (that php_intl.dll depends on) are found:
icuuc51.dll, icuin51.dll, icuio51.dll
* WampDeveloper Pro already includes PHP’s directory in PATH
, but some other WAMP distributions do not.
2. Install the Microsoft VC++ 2012 Runtime Redistributable that will provide these VC11 runtime DLLs (PHP 5.5 is built with VS.NET 2012):
MSVCR110.dll, MSVCP110.dll
Visual C++ Redistributable for Visual Studio 2012 Update 4
Make sure to install the 32 bit (x86) version if you are using a 32 bit PHP build: vcredist_x86.exe
* Unlike PHP 5.5, PHP 5.3 is built with VS.NET 2008 (VC9), and depends on “Visual C++ Redistributable for Visual Studio 2008″ which provides runtime DLLs: MSVCR90.dll, MSVCP90.dll