php oci8 ext not loading Unable to load dynamic library

我的梦境 提交于 2019-12-11 15:44:37

问题


I am trying to connect my PHP 7.0 with Oracle database(11g release 2) for that I download dll files of oci8 extension from https://pecl.php.net/package/oci8/2.1.7/windows and copy php_oci8.dll and php_oci8_11g.dll in my xampp/php/ext after that I restart my xampp server.

My System type is: 64bit operating system x64 based processor

when using 7.0 Non Thread Safe (NTS) x64 extension getting this error on cmd

when using 7.0 Non Thread Safe (NTS) x84 extension getting this error on cmd

why these dynamic libraries are not loading what I need to do to connect php 7 with Oracle 11g release 2 in 64-bit windows 10 operating system please help me about this


回答1:


Please check phpinfo to see if thread safety is enabled on your XAMPP server. (It seem to be enabled by default on xampp.) Also, check if your XAMPP is 32-bit or 64-bit. (There seems to be only 32-bit version available on Windows?) Then download OCI8 pecl package accordingly.

Here is what I got:

PHPInfo on my Windows Xampp server

Hence, I downloaded "7.1 Thread Safe (TS) x86".

FYI, oci8_2.1.8 is released this week. It fixes a critical reference count issue.



来源:https://stackoverflow.com/questions/46640455/php-oci8-ext-not-loading-unable-to-load-dynamic-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!