Unable to load or find PHP extension php_intl.dll

PHP says it can’t find extension php_intl.dll, yet file "php_intl.dll" does exist in the specified location!…

PHP Startup: Unable to load dynamic library ‘C:/wamp/path/to/php/ext/php_intl.dll’ – The specified module could not be found.

This is a very common issue, especially under PHP 5.5, and can easily be fixed.

To find out why PHP cannot load extension php_intl.dll, open the command line, change to WAMP’s PHP directory, and test the php_intl.dll dependencies (i.e., the other DLL files it needs):

C:
cd  \WampDeveloper\Components\Php
deplister.exe ext\php_intl.dll

This is a list of all the DLL files php_intl.dll must load itself, before PHP can load it:

# 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

On a system with this issue, either the “ICU” or the “VC++ Runtime” DLL files will not be found (i.e., shown as “NOTFOUND” instead of “OK” in the above output).

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 that php_intl.dll depends on (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

15 thoughts on “Unable to load or find PHP extension php_intl.dll”

  1. …also, check if your system contains the PHP extension file (e.g., php_intl.dll, php_curl.dll, etc) outside the WAMP folder.

    Sometimes PHP extensions wind up in the C:\Windows or C:\Windows\System32 folder from previous installations of PHP. And this becomes a problem – as the PHP process will usually loading them first – and abort on a build mismatch.

  2. If everything else fails, uninstalling WAMP, deleting the remaining folder/files, and re-installing often fixes the issue.

    But before you do that, try deleting the PHP extension file, and replacing it with the original file from the provided PHP version’s zip.

    It might just have gotten corrupted.

  3. Thanks a lot for this crucial information. For me, even though all the dependencies were listed as OK, the problem seemed to be that I did not have php in my path because I had recently updated to version 7 and still had the old directory there. Also, for some reason, I had to actually stop httpd and start it instead of restarting it before it stopped saying it couldn’t find the DLL and finally listed the intl module in phpinfo().

    Thanks again!

  4. Issue Resolved.
    Do nothing. Remember don’t install your wamp server where you already install your windows.
    Install your wamp server in another drive.
    Problem solved.

  5. C:
    cd \WampDeveloper\Components\Php
    deplister.exe ext\php_intl.dll

    I do not have the directory above. I am using MySQL5.7. Therefore, how can I change the dependencies? Thanks.

    1. The first 2 lines changes the command-line’s “working directory” to WampDeveloper’s PHP directory, before executing the deplister command. Otherwise “deplister” will not be found by the command-line.

      If you have PHP in some other location, you would reflect that, e.g., cd \path\to\your\php\folder.

  6. Can’t fix the issue.
    PHP 7.2
    Apache 2.4
    Windows Server 2016
    I’ve tried to install / repair both Versions VC++ 2015 and 2017. No result. Would appriciate any idea.

    >deplister.exe ext\php_intl.dll
    php7ts.dll,OK
    icuuc61.dll,OK
    icuin61.dll,OK
    icuio61.dll,OK
    MSVCP140.dll,OK
    VCRUNTIME140.dll,OK
    api-ms-win-crt-heap-l1-1-0.dll,NOTFOUND
    api-ms-win-crt-environment-l1-1-0.dll,NOTFOUND
    api-ms-win-crt-math-l1-1-0.dll,NOTFOUND
    api-ms-win-crt-runtime-l1-1-0.dll,NOTFOUND
    api-ms-win-crt-locale-l1-1-0.dll,NOTFOUND
    api-ms-win-crt-string-l1-1-0.dll,NOTFOUND
    KERNEL32.dll,OK

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>