php oci8 ext无法加载无法加载动态库 [英] php oci8 ext not loading Unable to load dynamic library

查看:316
本文介绍了php oci8 ext无法加载无法加载动态库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将PHP 7.0与Oracle数据库(11g版本2)连接,因为我从

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

在使用7.0 Non-Thread Safe(NTS)x64扩展名时,在cmd上出现此错误

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

使用7.0非线程安全(NTS)x84扩展名时,在cmd上出现此错误

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

为什么这些动态库没有加载在64位Windows 10操作系统中将php 7与Oracle 11g第2版连接所需的功能,请帮我解决这个问题

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

推荐答案

请检查phpinfo以查看XAMPP服务器上是否启用了线程安全. (它似乎在xampp上默认启用.)另外,检查XAMPP是32位还是64位. (Windows上似乎只有32位版本可用?)然后相应地下载OCI8 pecl软件包.

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.

这就是我得到的:

我的Windows Xampp服务器上的PHPInfo

因此,我下载了"7.1线程安全(TS)x86".

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

仅供参考,oci8_2.1.8已于本周发布.它解决了关键的参考计数问题.

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

这篇关于php oci8 ext无法加载无法加载动态库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆