PHP unable to load dynamic library "php_pdo_oci.dll"

birokrats picture birokrats · Mar 24, 2014 · Viewed 26.2k times · Source

I'm running Apache 2.4.7 with PHP 5.5.9 on Windows 8. I installed PHPUnit and this warning image "warning" started to pop up.

enter image description here

Yes I enabled extension loading in php.ini as well as "extension_dir" to correct folder and there is file named "php_pdo_oci.dll" in that folder. I tried to use different apache and php releases, but it didn't help. Any suggestions how to fix this?

Answer

Joshua Kissoon picture Joshua Kissoon · Mar 24, 2014

The ..._oci.dll is part of the Oracle C Interface. Unless you need to use Oracle, I suggest you go to the relevant line inside the php.ini file and uncomment the loading of this extension. However, if you need to use this extension, you’ll need to install the free Oracle Client libraries and add them to the path.

Oracle has a page where you can download the libraries needed for your setup work as expected and you can see here: Oracle Instant Client Downloads

Note: After you choose your operational system (Windows as in your answer) in download section you will see the installation guide in foot notes of the next page. For others OSs this process will work the same way.